Website:Subversion

From UGCS
(Difference between revisions)
Jump to: navigation, search
m (minor edits)
Line 1: Line 1:
 
=Subversion=
 
=Subversion=
  
Please note: this is not an introduction/howto use Subversion, you should google for that. This is how to use Subversion on the UGCS cluster.
+
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.
  
To create a svn repository, do this on the cluster: svnadmin create ~/public/svn
+
To create a svn repository, run this on the cluster:
 +
<pre>svnadmin create ~/public/svn</pre>
  
 
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).
 
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: fs sa FOLDER USER PERMS
+
To change permissions, run:
 +
<pre>fs setacl <folder> <user> <permissions></pre>
  
eg, to let anyone check in or out code: fs sa ~/public/svn system:anyuser rlidw
+
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 thus:
+
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
+
<pre>svn co svn+ssh://calliope.ugcs.caltech.edu/afs/.ugcs/user/<username>/public/svn</pre>
  
replacing co with whatever operation you want, and the path above with the path to your repository
+
replacing co with whatever SVN operation you want, and the path above with the path to your repository

Revision as of 04:30, 10 October 2007

Subversion

Please note: this is not an introduction/howto use Subversion, you should google for that. This is how to use Subversion 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