From 476df25d8c4712ed1a859820375420e4107d641c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 14 May 2012 10:39:40 -0400 Subject: [PATCH] Improve bzr register's heuristics to determine upstream repo. Closes: #672843 --- debian/changelog | 2 ++ mr | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e311dc6..7632104 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ mr (1.12) UNRELEASED; urgency=low when there were no changes to pull. Closes: #661870 * Add vcsh to Suggests. * Recognize a repo with a .git file as a git repo. + * Improve bzr register's heuristics to determine upstream repo. + Closes: #672843 -- Joey Hess Fri, 02 Mar 2012 00:33:08 -0400 diff --git a/mr b/mr index 6fc5d57..556366c 100755 --- a/mr +++ b/mr @@ -1983,7 +1983,7 @@ git_register = echo "Registering git url: $url in $MR_CONFIG" mr -c "$MR_CONFIG" config "`pwd`" checkout="git clone '$url' '$MR_REPO'" bzr_register = - url="`LC_ALL=C bzr info . | egrep -i 'checkout of branch|parent branch' | awk '{print $NF}'`" + url="`LC_ALL=C bzr info . | egrep -i 'checkout of branch|parent branch' | awk '{print $NF}' | head -n 1`" if [ -z "$url" ]; then error "cannot determine bzr url" fi -- 2.39.2