SMWG repository: How to start
Official docsSubversion Online book (HTML version) is the full text of the Subversion O'Reilly book and I found the Quick Start there very useful.
Basic commandsBecause of the way Subversion uses URLs, a separate repository for each authorization domain has been created: ie each set of people with write access (you can have a separate group of people with read-only access to each repository too.). In the following page the repository is the smwgtest test repository you can try out commands in that repository.
The URL is https://www.sysadmin.hep.ac.uk/svn/smwgtest and that is equivalent to file:///path/to/repos in the Subversion book. You can import a new set of files with CVS like commands:
Certificate setupAs far as the client side security goes, running the svn command will produce a .subversion directory and files with default settings. Some of the questions subversion commands ask can be actually silenced configuring .subversion/servers file
ssl-client-cert-file = /path-to mycert/mycertificate.p12
should be enough to get it working. A small drawback is that the p12 export passphrase is needed for each SVN command.
If you have multiple svn servers, you can set it within a group statement.
[groups] swmg = http://www.sysadmin.hep.ac.uk/svn/smwgtest [swmg] ssl-client-cert-file = /home/moreyc/.globus/escience-exp-06-05-07.p12You can restrict the client to a list of trusted CAs with the following line if you want.
The DN of your certificate needs to be added to the apropriate ACLs lists to gain access to the repository. If you want to commit something contact Alessandra Forti.
Enabling the subversion Id tagIt is really useful to have the Id tag automatically updated on the files when they are committed. Differently from cvs subversion doesn't do it automatically it needs to be configured. To do that edit you ~/.subversion/config file and add or uncomment the following lines:
you need to do it before adding any file to the repository. Global settings don't work on files already in the repository.
Files bannersEach file committed should contain a banner to know Some basic information like the author, the data of creation etc, etc. The basic information contained should be the following:
Licencing your files is not mandatory but some people want to do it. A short list of most commonly used Open Source licenses pointers can be found at here for convenience. List can be extended if needed.
$Id:$ is expanded by subversion once the file is committed.
Last modified Tue 17 April 2007 . View page history
Switch to HTTPS . Website Help . Print View . Built with GridSite 1.4.3
|System Administration for HEP|