Difference between revisions of "Introduction to Subversion"

From SourceWiki
Jump to navigation Jump to search
Line 5: Line 5:
  
 
==Why Subversion?==
 
==Why Subversion?==
It is very similar to the better know [http://www.nongnu.org/cvs/ | CVS] system however, Subversion has several advantages over CVS:
+
It is very similar to the better know [http://www.nongnu.org/cvs/ | CVS] system however, Subversion has several neat advantages over CVS:
* files and directory can be renamed and keep their history. This is a big
+
* files and directory can be renamed and keep their history throughout the life of the project.
* commits are atomic, i.e. when you sent a lot of changes to the server, the "commit" is either successful or not. For instance, if the network connection is lost halfway through the transaction, the whole commit fail and the repository is not affected.
+
* commits are atomic, i.e. when you sent a lot of changes to the server, the "commit" is either successful or not. For instance, if the network connection is lost halfway through the transaction, the whole commit fail and the repository is not affected. It also mean that you can identify very easily all files changed during a commit.
* a wider choice of access method, in particular webdav which allows easy access via a web browser
+
* a wider choice of access methods is provided, in particular webdav allows easy access via a web browser.
* support binary files, i.e. Word documents or Excel spreadsheets can be versionned via Subversion.
+
* support for binary files, i.e. Word documents or Excel spreadsheets can be versionned via Subversion.
  
This is why we chose to install Subversion as the version control system on <tt>[[Subversion server | source]]</tt>.
+
This is why we chose to install Subversion as the version control system on <tt>[[Subversion server | source]]</tt>. Subversion is actually being developed as a modern successor for CVS and it makes sense to standardize on a more modern technology.
  
==Example: <t>myproject</tt>==
+
==Example: <tt>myproject</tt>==
  
<tt>myproject</tt> is an example repository. You can access it at the URL http://source.ggy.bris.ac.uk/subversion/websvn using your login and password. If you do not have an account on <tt>[[Subversion server | source]]</tt>, use the combination guest/imaguest.
+
<tt>myproject</tt> is an example repository. You can access it at the URL http://source.ggy.bris.ac.uk/websvn using your login and password. If you do not have an account on <tt>[[Subversion server | source]]</tt>, use the combination guest/imaguest. Naviguate to the <tt>trunk</tt> directory and look at the files and their history.
 +
 
 +
If you have downloaded a subversion client, you can use <tt>myproject</tt> as a test repository and send your own changes. To do this, use the URL http://source.ggy.bris.ac.uk/subversion/myproject. CHeckout

Revision as of 23:57, 9 February 2006


Subversion is an open-source Version control system.

Why Subversion?

It is very similar to the better know | CVS system however, Subversion has several neat advantages over CVS:

  • files and directory can be renamed and keep their history throughout the life of the project.
  • commits are atomic, i.e. when you sent a lot of changes to the server, the "commit" is either successful or not. For instance, if the network connection is lost halfway through the transaction, the whole commit fail and the repository is not affected. It also mean that you can identify very easily all files changed during a commit.
  • a wider choice of access methods is provided, in particular webdav allows easy access via a web browser.
  • support for binary files, i.e. Word documents or Excel spreadsheets can be versionned via Subversion.

This is why we chose to install Subversion as the version control system on source. Subversion is actually being developed as a modern successor for CVS and it makes sense to standardize on a more modern technology.

Example: myproject

myproject is an example repository. You can access it at the URL http://source.ggy.bris.ac.uk/websvn using your login and password. If you do not have an account on source, use the combination guest/imaguest. Naviguate to the trunk directory and look at the files and their history.

If you have downloaded a subversion client, you can use myproject as a test repository and send your own changes. To do this, use the URL http://source.ggy.bris.ac.uk/subversion/myproject. CHeckout