Search |
||
Trip and Tick: svnserve on linux et alPosted by evanx on July 9, 2007 at 11:27 AM PDT
I spotted this handy blog entry and so decided to give it a go, on a brand new $15 linux VDS. Here are my notes, which are consequently a rehash of that blog.
Let's decide that svnserve will run as user svn, and access repositories off its home
directory ie. /home/svn.
So we create the user svn with useradd, which creates its home directory /home/svn.
We create repository using svnadmin eg. /home/svn/aptframework.
If this host is aptframework.net, then this repository's URL
will be svn://aptframework.net/aptframework.
In the svnserve.conf for our repository, we uncomment as follows.
We might want to have anon-access set to none eg. for private stuff.
In the specified passwd-db file,
we add usernames and passwords for ourselves.
If we want to use a common password file for multiple repositories eg. /home/svn/passwd, then...
where we specify the absolute path for password-db in svnserve.conf.
We add an svn config for xinetd in subdirectory /etc/xinetd.d/ as follows
where svnserve runs as user svn, and serves repositories off /home/svn.
We restart xinetd for the changes to take effect.
Now we can checkout a "working copy" of repository using svn://aptframework.net/aptframework URL.
Let's add and commit the standard (although optional) directories trunk, branches and
tags.
Finally we can import our source as follows, eg. from
/projects/aptframework/src.
Or for the whole shebang, eg. src, lib and what-have-you...
We can do a test checkout to a tmp directory to make sure it looks ok, eg.
we checkout just the src directory as follows.
When things don't go as planned, we just recreate the repository from scratch as follows.
To re-import source, we'll need to search and destroy all those .svn hidden directories
eg. in our src, innit.
Setting up and serving a subversion repository is quite trivial.
We create an svn user, configure svnserve in xinetd, and
use svnadmin to create repositories.
»
Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|