Ans: Subversion is an open source control system which is used to trace all the changes made to your source code. It is a repository used to manage files, folders, directories and the modification made to these files over a period of time. While SVN repository provides a complete history of changes made to the files and can easily track if someone had made changes in the file.
Ans:
Ans: Revert your local changes.
Ans: SVN commit: Push (upload) the local changes to Repository.
SVN Update: Get (download) the Repository changes files to local system.
It have two types:
Ans:
Ans:
Ans: To apply a patch in SVN, you are required to “Create Patch” by making changes and generating the .diff file. Then this .diff file can be implemented to the new code base using “Apply Patch”.
Ans: The difference between SVN and GIT is
Ans: Update is used to update the local workspace with the changes made by the team to the repository, while commit is the process to implement changes from local to repository, in simple words, upload a file into repository.
Ans: Command svn list file:///home/mysurface/repo/programming_repo is used to see what is inside the repository.
Ans: he command uses to view the difference between the local and repository version is
Ans: The result codes G and R in svn indicates:
G code: Changes on the repo were automatically merged into the working copy.
R code: This code indicates that item has been replaced in your working copy. This means the file was programmed or scheduled for deletion, and a new file with the same name was scheduled for addition in its place.
Ans: “Revert” function will remove your local changes and reload the latest version from the repository.
Q14. Mention What Is The Command To Add A File Or Dir?
Ans: To add a file or dir in SVN the command you will use
Ans: Common subversion commands include:
Other than these it also has command like revert, move, copy and merge.
Ans: To retrieve a previous version, you have to use “revert” command. But revert command will simply erase local edits; what you actually need is to “merge” command. For example, you have a file [abc.txt] and the current version is 101, and you want version 201. Then you will use the command like
Svn merge –r 101:201 abc.txt
Svn commit –m “Reverted to revision 201” abc.txt
Ans: Following commands can be used:
Ans: Command to create a new directory under version control includes
Svn mkdir directory
Svn mkdir http://url/directory
Ans: he command you will use to import your existing directory into the new repository you have to write
Svn import/home/my surface/programming
file:///home/mysurface/repo/programing_repo-m “initial import”.
Q20. What is the use of Tortoisesvn?
Ans: TortoiseSVN is a Subversion client, implemented as a Microsoft Windows shell extension, that helps programmers manage different versions of the source code for their programs. It is a free software released under the GNU General Public License