[Pkg-shadow-devel] We now have a working SVN repository

Nicolas François nicolas.francois@centraliens.net
Tue, 10 May 2005 14:02:37 +0200


On Tue, May 10, 2005 at 06:04:08AM +0200, Martin Quinson wrote:
> > Can you prepare a tarball of the CVS repository?
> > Also a tarball of the current empty svn repository may help to make sure
> > everything will behave like expected.
> 
> Both should be on http://graal.ens-lyon.fr/~mquinson/debian/ in a short while.

OK, I get them.

> I am concerned with the permission/owner of the svn repository. For now, it
> looks to be root/pkg-shadow, and sgid. I'm obviously not root on debian
> servers. Will it be an issue?

I've tried to keep the permissions. And permissions may be an issue.
Are you in the pkg-shadow group?
If not, we will have to require teh svn admin to populate the repository.
(We just have to provide the dump file; I've seen such requests on the
alioth tracker)

first uncompress the tar balls
(This is only needed if you want to test it on your box)
(and keep the permissions => sudo tar)

# add a pkg-shadow group
sudo addgroup --gid 40580 pkg-shadow
sudo adduser fzt pkg-shadow

sudo tar zxf shadow-cvs.tgz
sudo tar zxf shadow-svn.tgz

# move the svn repository to the right place
sudo cp -a svn/pkg-shadow/ /var/lib/svn/

# be in the pkg-shadow group
newgrp pkg-shadow

# populate the repository (this will be the only command to execute on the
# cvs/svn host).
# If the cvs and svn hosts are different, we can use an intermediate
# dump file (see my pervious mail)
cvs2svn --existing-svnrepos -s /var/lib/svn/pkg-shadow/ cvsroot/pkg-shadow/


# the next operations don't have to be performed on teh SVN host
# create a working directory
svn co  file:///var/lib/svn/pkg-shadow/

cd pkg-shadow
# prepare the separation of the sarge branch
svn move trunk/sarge/ branches/sarge
svn move trunk/sid/debian/ trunk/debian
svn delete trunk/CVSROOT/
svn delete trunk/sid

# commit
svn ci -m "Create a sarge branch with teh sarge directory and clean the trunk"

This should be sufficient.


You can browse the result:
https://nekral.homelinux.net/websvn/listing.php?repname=pkg-shadow

You can verify that there is still the log of my mess in lastlog:
https://nekral.homelinux.net/websvn/log.php?repname=pkg-shadow&path=%2Fbranches%2Fsarge%2Fsrc%2Flastlog.c&rev=0&sc=0&isdir=0

Please wait before doing this on the SVN host. I would like to verify
the result before;)
You can also try these commands to check if I did not forget something.

-- 
Nekral