|
||
| School of Engineering >> IT Services |
|
SubversionWhat is Subversion?Subversion is a version control system. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. It is a replacement for the older CVS service. It is often abbreviated to svn. For more information on svn, and to familiarise yourself with the basic concepts, please read the Subversion Reference Manual Engineering Subversion ServiceWe run an svn service within Engineering where you can request the creation of repositories for any projects you require. Once a repository has been created, 'repository managers' can be appointed who have the ability to change the access permissions. This is useful for sensitive research subjects, or for administering projects with multiple parts. There are two ways to access svn repositories - the 'full' way using svn tools such as svn on the command-line, or tortoiseSVN, or the 'simple' way, using WebDAV. The details on using svn are available in the Reference Manual linked to at the start, or by viewing the help which accompanies the You can also Map a Network Drive to an svn repository for simple access. However, there are some extra points which are specific to the Engineering setup of svn:
Requesting a RepositoryTo request a new repository, please contact SEESup, with the subject 'New SVN Repository'. Please state the name you require for the repository, and the username(s) of those who should be the Repository Managers. As a general rule, you should use your username as the repository name if it is for your own use, and use a specific name where it relates to a project, or is to be shared between multiple end-users. A repository will be created with the name requested, and the default access rules applied. If you have external collaborators wishing to use your repository, you will need to request a visitor account for them, so that they can use EASE to authenticate. Please contact your Institute Administrator to request this. If you currently have a repository on the Engineering svn service, we will contact you about its migration. If you are using an svn repository at a different site and wish to move it to the Engineering svn service, please indicate this in your repository request, providing as much detail as possible about the existing repository. In order to do the move, you will need to have some level of admin access to your existing repository to be able to take a copy for migration. We also offer a Trac project page for each svn repository - if you would like this enabled, please add this to your Request. Configuring a RepositoryThe repository can be accessed at: The access rules live in an 'auth-file' - this is stored in a separate svn repository, managed by the IT Team. The right to edit the repository's auth-file is granted to all named Repository Managers. By default, the repository will be set up to be 'read-only' and you will need to change the auth-file before you begin to commit files. To make changes to access rules, the Repository Manager should check-out In case of errors with the auth-file, you can use the svn tools to revert to a previous version if necessary. Auth-File syntaxThis is an example auth-file syntax with comments:
#comments begin with a #
The default auth-file created when a repository is set up gives everyone read access to the repository, and creates a repos-admin group, containing the Engineering IT staff. It is worth leaving this group and its rules in place for support purposes, but it can be removed if required. Hook ScriptsWe don't allow direct editing of hook scripts on repositories, as these are run directly on the system and thus could present a security flaw if misused. However, we do offer a standard hook script on all repositories that allows emails to be sent on commit. To make use of this feature, create a file in the same folder as your auth-file, called commit-emails and put a space separated list of email addresses to receive commit notification - for example:
If you have a specific need for a hook script that isn't accommodated by the above, please contact seesup, including a copy of the hook script you need and information on which repository it should be applied to. We will vet the script and apply it on your behalf. |
|
The School of Engineering, The University of Edinburgh, Kings
Buildings, Mayfield Road, Edinburgh, EH9 3JL
School IT Team Tel: 0131 650 5636 Fax: 0131 650 6554 Email: SeeSup@ed.ac.uk © 2002-2008 Copyright The University of Edinburgh. All rights reserved. |
Last modified Thursday, 08-Jul-2010 10:59:26 BST