Website:Subversion

From UGCS
(Difference between revisions)
Jump to: navigation, search
m (minor edits)
m (reformat)
Line 1: Line 1:
 
=Subversion=
 
=Subversion=
  
Please note: this is not an introduction/howto use Subversion, you should [http://www.google.com/search?q=subversion+tutorial google] for that. This is how to use Subversion on the UGCS cluster.
+
Please note: this is not an introduction/howto for Subversion in general; you should [http://www.google.com/search?q=subversion+tutorial google] for that. This is how to set up and begin using a Subversion repository on the UGCS cluster.
  
 
To create a svn repository, run this on the cluster:
 
To create a svn repository, run this on the cluster:
Line 11: Line 11:
 
<pre>fs setacl <folder> <user> <permissions></pre>
 
<pre>fs setacl <folder> <user> <permissions></pre>
  
eg, to let anyone check in or out code: fs sa ~/public/svn system:authuser rlidw
+
eg, to let anyone check in or out code:
 +
<pre>fs sa ~/public/svn system:authuser rlidw</pre>
  
 
Once you have created a repository, you can access it from any computer as follows:
 
Once you have created a repository, you can access it from any computer as follows:

Revision as of 04:31, 10 October 2007

Subversion

Please note: this is not an introduction/howto for Subversion in general; you should google for that. This is how to set up and begin using a Subversion repository on the UGCS cluster.

To create a svn repository, run this on the cluster:

svnadmin create ~/public/svn

By default, anyone will be able to check out the code but only you will be able to edit it. In order to allow others to edit it you will need to grant them rlidw permissions, and in order to allow others to read it you will need to grant them rl permissions. To make a repository private, do not give anyone any other privileges (eg by creating in your ~ instead of in public).

To change permissions, run:

fs setacl <folder> <user> <permissions>

eg, to let anyone check in or out code:

fs sa ~/public/svn system:authuser rlidw

Once you have created a repository, you can access it from any computer as follows:

svn co svn+ssh://calliope.ugcs.caltech.edu/afs/.ugcs/user/<username>/public/svn

replacing co with whatever SVN operation you want, and the path above with the path to your repository

Personal tools