Rosetta 3.2.1 Release Manual

A Guide to Using Subversion on the Command Line

Subversion is a widely used easy to leard version control system. For an in depth view into subversion see the subversion manual online at http://svnbook.red-bean.com. Several svn clients have been developed including some very easy to use graphical user interfaces see http://subversion.tigris.org/links.html#clients. All the commands found here can be accessed in most GUI clients. The guide is under construction, but once complete will take the reader through the following processes

Note that all of the topics covered here are also covered on the Rosetta Wiki. This page is a process oriented introduction which leads a beginning user through most of the tasks encountered during normal usage.

Before looking at specific commands it is worth noting that subversion has a good help system directly on the command line. As this screenshot shows calling svn --help displays a pretty extensive list of available commands.

svn_help.png

Each command also has a short but pretty comprehensive help statement which can be accessed by issuing the command with the --help flag.

Exploring the subversion repository

Two subversion or svn commands are particularly useful in browsing the soure repository on the cammand line. The first is the ls command. The ls or list command lists the contents of a URL in the repository. For example the screenshot below shows the content of the toplevel of the repository.
svn_ls.png

The second command is the cat command. The cat command outputs the contents of a file in the repository to the stdout stream. For example the screenshot below displays the start of readme file in the toplevel of the mini directory.

svn_cat.png

Checking out, Updating, Commiting changes for a local copy to the repository.

In order to makes changes to the repository you have a check out a portion of the repository. For example let us check out a copy of the the doc/apps directory of mini rosetta.
svn_co.png

Notice how the the command places the check files from the repository in the directory you specify. Now while you are making changes to your local copy of the doc/apps directory someone else may checkin changes such as a tutorial for the application they have created. To add the changes they made to your local copy you can use the svn update command.

svn_update.png

This page is under Construction. Look at this wiki page for more information https://wiki.rosettacommons.org/index.php/Tools:Subversion


Generated on Sun Mar 6 22:03:06 2011 for Rosetta Projects by  doxygen 1.5.9

© Copyright Rosetta Commons Member Institutions. For more information, see http://www.rosettacommons.org.