From ef5c2f73f47387fd7aafc30dcebcd051984370cf Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 12 Oct 2007 19:54:27 -0400 Subject: [PATCH] bzr support for register --- mr | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5