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.
Other documents that refer to similar topics can be found on gna.org and wiki.gnuarch.org.
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 “email@example.com–sf-project” and we want a mirror for a sf.net project called “projectname”. It is created with
tla make-archive --signed firstname.lastname@example.org /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 email@example.com sftp://firstname.lastname@example.org/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 email@example.com-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 firstname.lastname@example.org email@example.com-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.