From Open Babel
Revision as of 01:41, 7 February 2007 by Baoilleach (Talk | contribs) (Instructions for non-gurus)

Jump to: navigation, search

Subversion (or SVN) is the name of the project used to maintain the Open Babel version control repository. There are many clients for Subversion, including command-line and GUI applications. For more links, see the Subversion website. There is a very nice book about using Subversion, which is available online.

Keeping up to date with the latest Open Babel code with Subversion

(1) Check out the latest development version:

svn co openbabel 

This creates a directory called 'openbabel', which contains the latest source code from OpenBabel.

(2) Configure and compile this in the usual way, as described on the Install (source code) page.

(3) After some time passes, and you want the latest bug fixes or new features, you may want to update your source code. To do this, go into the 'openbabel' directory you created above, and type:

svn update

(4) Do step (2) again.

(5) If, after updating, the compilation fails please report it to the Open Babel mailing list. In the meanwhile, if you want to go back to a particular revision (that is, if you don't want to use the latest one), just use 'svn info' to find the number of the current revision, and update to an earlier revision either by date or by revision number:

$ svn info
Revision: 1740
$ svn update -r 1735
$ svn update -r {2007-01-01}

Information for Developers

The following table suggests Subversion commands useful for Open Babel contributors. More documentation can be found in the Official SVN Manual.

Subversion Command What it does
svn co openbabel Check out the latest development version of Open Babel
svn co openbabel Check out the current stable branch (2.0.x) of Open Babel
svn update Update the current directory and subdirectories with any new changes
svn add filename Add the file 'filename to the repository
svn remove filename Remove the file filename (before a commit)
svn mv filename newname Move/rename the file filename to newname
svn commit Commit the changes to the central repository
svn diff Return a diff set of differences between the working copy and the central repository
svn co repo/branches/foo openbabel Check out a branch named foo into the directory named openbabel
svn switch repo/branches/foo Switch the current working copy to a branch named foo
svn copy repo/branches/foo Create a branch named foo with the current working copy