Using Arch Revision Control with Sourceforge.NET
by Martin Schaaf
At home I use Arch since a long time and want to use it also for my project hosted on sourceforge.net. So that I don’t need to switch between Arch and CVS any longer. My goal was to setup a mirror of my local repository. That gives me the possiblity to develop locally and commit my changes to the mirror in bigger time intervalls. I write it down here because I think this can be interessting to other people too and hope this will encourage other people to use arch with sf.net.
As a result we will get a mirror of our archive on the sf.net project web space. Where the project members can commit and others have readonly access. The project member accesses the archive per sftp with the following path
The elements between the “<” and “>” brackets depends on the user it accesses the project archive and the name of the project. To anonymous access the project archive per http the following path can be used
Locally there is a signed archive called “firstname.lastname@example.org–sf-project” and we want a mirror for a sf.net project called “projectname”. It is created with
tla make-archive --signed email@example.com /home/a/archives/sf-project
and should be mirrored on sf.net. First we create the mirror with the command
tla make-archive --listing --mirror --signed firstname.lastname@example.org sftp://email@example.com/home/p/pr/projectname/htdocs/archives
Now we have the mirror on sf.net. The next step is to register it locally under a different archive name. We use for this step the command
tla register-archive -d firstname.lastname@example.org-MIRROR
The next and last step is to commit our local archive to the remote sf.net archive. We use the following command
tla archive-mirror email@example.com firstname.lastname@example.org-MIRROR
This have to be done everytime you want to update the mirror or can be automatized to be done after every local commit. The Arch documentation shows how to achive this.
I will thank Tom Lord for developing this very nice and easy useable revision control called Arch and Sourceforge.NET for providing free project hosting.