From: Joey Hess Date: Thu, 18 Oct 2007 20:20:51 +0000 (-0400) Subject: * Support registering CVS repositories. Closes: #447171 X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/166ff8a840ca4e98ab03305dc10c86e5f28e5554?ds=sidebyside;hp=43ec2143d9c3d48449d287774a08e581e916d081 * Support registering CVS repositories. Closes: #447171 --- diff --git a/debian/changelog b/debian/changelog index 800c8cc..5122cb3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,9 @@ mr (0.4) UNRELEASED; urgency=low * Add the -n switch, for disabling recursion. * Allow for more complex deleted tests, such as marking a repo deleted on some hosts, while not on others. + * Support registering CVS repositories. Closes: #447171 - -- Joey Hess Thu, 18 Oct 2007 15:39:03 -0400 + -- Joey Hess Thu, 18 Oct 2007 16:20:34 -0400 mr (0.3) unstable; urgency=low diff --git a/mr b/mr index 886aa65..44ff395 100755 --- a/mr +++ b/mr @@ -887,6 +887,15 @@ register = fi echo "Registering bzr url: $url" mr -c "$MR_CONFIG" config "$(pwd)" checkout="bzr clone $url $basedir" + elif [ -d CVS ]; then + repo=$(cat CVS/Repository) + root=$(cat CVS/Root) + if [ -z "$root" ]; then + error "cannot determine cvs root" + fi + echo "Registering cvs repository $repo at root $root" + mr -c "$MR_CONFIG" config "$(pwd)" \ + checkout="cvs -d '$root' co -d $basedir $repo" else error "unable to register this repo type" fi