Rosetta 3.3
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 Several svn clients have been developed including some very easy to use graphical user interfaces see 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.


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.


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.


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.


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.


This page is under Construction. Look at this wiki page for more information

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines