X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/5e6baa9997df5897ee4e46eb6ba3473761deac1b..166ff8a840ca4e98ab03305dc10c86e5f28e5554:/mr 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