From: Joey Hess Date: Fri, 12 Oct 2007 23:54:27 +0000 (-0400) Subject: bzr support for register X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/ef5c2f73f47387fd7aafc30dcebcd051984370cf?ds=sidebyside bzr support for register --- diff --git a/mr b/mr index 96f3a16..e15019e 100755 --- a/mr +++ b/mr @@ -730,6 +730,13 @@ register = \ fi \ echo "Registering git url: $url" \ mr config "$(pwd)" checkout="git clone $url $basedir" \ + elif [ -d .bzr ]; then \ + url=$(cat .bzr/branch/parent) \ + if [ -z "$url" ]; then \ + error "cannot determine bzr url" \ + fi \ + echo "Registering bzr url: $url" \ + mr config "$(pwd)" checkout="bzr clone $url $basedir" \ else \ error "unable to register this repo type" \ fi