X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/43ec2143d9c3d48449d287774a08e581e916d081..166ff8a840ca4e98ab03305dc10c86e5f28e5554:/mr?ds=sidebyside 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