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

Martin Quinson martin.quinson@loria.fr
Tue, 10 May 2005 14:54:29 +0200


--Sw7tCqrGA+HQ0/zt
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 10, 2005 at 02:02:37PM +0200, Nicolas Fran=E7ois wrote:
> 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 s=
ure
> > > everything will behave like expected.
> >=20
> > Both should be on http://graal.ens-lyon.fr/~mquinson/debian/ in a short=
 while.
>=20
> OK, I get them.
>=20
> > 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?
>=20
> I've tried to keep the permissions. And permissions may be an issue.
> Are you in the pkg-shadow group?

Yes I am.

> first uncompress the tar balls
> (This is only needed if you want to test it on your box)
> (and keep the permissions =3D> sudo tar)
>=20
> # add a pkg-shadow group
> sudo addgroup --gid 40580 pkg-shadow
> sudo adduser fzt pkg-shadow
>=20
> sudo tar zxf shadow-cvs.tgz
> sudo tar zxf shadow-svn.tgz
>=20
> # move the svn repository to the right place
> sudo cp -a svn/pkg-shadow/ /var/lib/svn/
>=20
> # be in the pkg-shadow group
> newgrp pkg-shadow
>=20
> # 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-shado=
w/

They are. cvs is on alioth.debian.org (hadyn) while svn is on
svn.debian.org (costa). So, I guess I have to do the following:

ssh alioth.debian.org "cvs2svn --dump-only /cvsroot/pkg-shadow"
scp alioth.debian.org:cvs2svn-dump /tmp
scp /tmp/cvs2svn-dump svn.debian.org:
ssh svn.debian.org "svnadmin load /svn/pkg-shadow/ < cvs2svn-dump"
ssh alioth.debian.org "rm cvs2svn-dump"
ssh svn.debian.org "rm cvs2svn-dump"

Oh, wait a second: cvs2svn isn't installed on alioth! I guess I can produce
the dump on my own box once the groups are created the way you propose? Do
you already have a dump I could use (even easier)?

> 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.

Ok, waiting for your green light, then.


Many thanks for your time,
Mt.

--Sw7tCqrGA+HQ0/zt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCgK8FIiC/MeFF8zQRAud4AKCYi5lgn02cHFSXvhQ2RzFYBqPQiQCbB1Kr
CzxU6kGEeiq1gP7ymXuWt+k=
=+YVF
-----END PGP SIGNATURE-----

--Sw7tCqrGA+HQ0/zt--