]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

* Support registering CVS repositories. Closes: #447171
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 18 Oct 2007 20:20:51 +0000 (16:20 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 18 Oct 2007 20:20:51 +0000 (16:20 -0400)
debian/changelog
mr

index 800c8cccefb8b50a9b571624f527a0b4b904d67b..5122cb377d17f0e6d0fb2716fa49c5f77cadccbf 100644 (file)
@@ -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 <joeyh@debian.org>  Thu, 18 Oct 2007 15:39:03 -0400
+ -- Joey Hess <joeyh@debian.org>  Thu, 18 Oct 2007 16:20:34 -0400
 
 mr (0.3) unstable; urgency=low
 
diff --git a/mr b/mr
index 886aa65b92d89162f90c87e655806aeca9bc1976..44ff395aa684425cc972797a140049cfc032bac0 100755 (executable)
--- 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