Difference between revisions of "Subversion"

From Open Babel
Jump to: navigation, search
m (Keeping up to date with the latest Open Babel code with Subversion)
(Now using Git)
 
Line 1: Line 1:
[http://subversion.tigris.org/ 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 [http://subversion.tigris.org/links.html Subversion website]. There is a very nice book about using Subversion, which is available [http://svnbook.red-bean.com online].
+
#Redirect [[Git]]
 
+
== Keeping up to date with the latest Open Babel code with Subversion ==
+
 
+
(1) Check out the latest development version:
+
<pre>
+
svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel
+
</pre>
+
This creates a directory called 'openbabel', which contains the latest source code from OpenBabel.
+
 
+
(2) Configure and compile this using CMake, as described on the [[CMake]] 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:
+
<pre>
+
svn update
+
</pre>
+
 
+
(4) Do step (2) again.
+
 
+
(5) If, after updating, the compilation fails please report it to the Open Babel [mailto:[email protected] 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:
+
<pre>
+
$ svn info
+
...
+
Revision: 1740
+
...
+
$ svn update -r 1735
+
    (or)
+
$ svn update -r {2007-01-01}
+
</pre>
+
 
+
== Information for Developers ==
+
 
+
The following table suggests Subversion commands useful for Open Babel contributors. More documentation can be found in the [http://svnbook.red-bean.com/ Official SVN Manual].
+
 
+
{|border=1
+
| '''Subversion Command'''
+
| '''What it does'''
+
|-
+
| svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel
+
| Check out the latest development version of Open Babel
+
|-
+
| svn co https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-0-x 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
+
|-
+
|}
+
 
+
[[Category:Contribute]]
+

Latest revision as of 10:25, 9 June 2013

Redirect to: