Difference between revisions of "Subversion"

From Open Babel
Jump to: navigation, search
m (Added category)
Line 1: Line 1:
 
[http://subversion.tigris.org/ Subversion] 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].
 
[http://subversion.tigris.org/ Subversion] 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].
  
The following table suggests equivalents between the old CVS command-line actions and Subversion. More documentation can be found in the [http://svnbook.red-bean.com/ Official SVN Manual].
+
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
 
{|border=1
| '''CVS Command'''
 
 
| '''Subversion Command'''
 
| '''Subversion Command'''
 
| '''What it does'''
 
| '''What it does'''
 
|-
 
|-
| cvs -d ''repo'' co openbabel
 
 
| svn co https://svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel  
 
| svn co https://svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel  
 
| Check out the current version of Open Babel
 
| Check out the current version of Open Babel
 
|-  
 
|-  
| cvs -d ''repo'' co -r openbabel-2-0-x openbabel
 
 
| svn co https://svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-0-x openbabel  
 
| svn co https://svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-0-x openbabel  
 
| Check out the current stable branch (2.0.x) of Open Babel
 
| Check out the current stable branch (2.0.x) of Open Babel
 
|-  
 
|-  
| cvs update -dP
 
 
| svn update  
 
| svn update  
 
| Update the current directory with any new changes
 
| Update the current directory with any new changes
 
|-
 
|-
| cvs add ''filename''
 
 
| svn add ''filename''
 
| svn add ''filename''
 
| Add the file '''filename'' to the repository
 
| Add the file '''filename'' to the repository
 
|-
 
|-
| rm -f name<br>cvs remove ''filename''
 
 
| svn remove ''filename''  
 
| svn remove ''filename''  
 
| Remove the file ''filename'' (before a commit)
 
| Remove the file ''filename'' (before a commit)
 
|-
 
|-
| mv ''filename'' ''newname''<br>cvs remove ''filename'' <br>cvs add ''newname''
 
 
| svn mv ''filename'' ''newname''  
 
| svn mv ''filename'' ''newname''  
 
| Move/rename the file ''filename'' to ''newname''
 
| Move/rename the file ''filename'' to ''newname''
 
|-
 
|-
| cvs commit
 
 
| svn commit  
 
| svn commit  
 
| Commit the changes to the central repository
 
| Commit the changes to the central repository
 
|-
 
|-
| cvs diff
 
 
| svn diff  
 
| svn diff  
 
| Return a ''diff'' set of differences between the working copy and the central repository
 
| Return a ''diff'' set of differences between the working copy and the central repository
 
|-
 
|-
| cvs -d ''repo'' co -r foo openbabel
 
 
| svn co ''repo''/branches/foo openbabel  
 
| svn co ''repo''/branches/foo openbabel  
 
| Check out a branch named ''foo'' into the directory named ''openbabel''
 
| Check out a branch named ''foo'' into the directory named ''openbabel''
 
|-
 
|-
| cvs update -r foo
 
 
| svn switch ''repo''/branches/foo  
 
| svn switch ''repo''/branches/foo  
 
| Switch the current working copy to a branch named ''foo''
 
| Switch the current working copy to a branch named ''foo''
 
|-
 
|-
| cvs tag -b foo
 
 
| svn copy ''repo''/branches/foo
 
| svn copy ''repo''/branches/foo
 
| Create a branch named ''foo'' with the current working copy
 
| Create a branch named ''foo'' with the current working copy
Line 54: Line 42:
 
|}
 
|}
  
[[Category:Developer]]
+
[[Category:Contribute]]

Revision as of 14:53, 19 October 2006

Subversion 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.

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 https://svn.sourceforge.net/svnroot/openbabel/openbabel/trunk openbabel Check out the current version of Open Babel
svn co https://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 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