From 499cabb0a1773a426c59838a523f73ec62c6127f Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 20 Jul 2007 06:39:26 +0000 Subject: [PATCH] support bzr checkouts --- baz-update-config | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/baz-update-config b/baz-update-config index 6a45d91..ed53853 100755 --- a/baz-update-config +++ b/baz-update-config @@ -26,10 +26,20 @@ for line in $(baz cat-config "$1" 2>/dev/null || cat "$1"); do if [ ! -d "$DIR/.bzr" ]; then echo "$DIR is not a bzr checkout; cannot update" >&2 continue + elif [ -f "$DIR/.bzr/branch/bound" ]; then + bzr update "$DIR" + else + (cd "$DIR" && bzr pull "$VERSION") fi - (cd "$DIR" && bzr pull "$VERSION") else - bzr get "$VERSION" "$DIR" + case $VERSION in + bzr+ssh://*|sftp://*) + bzr checkout "$VERSION" "$DIR" + ;; + *) + bzr get "$VERSION" "$DIR" + ;; + esac fi ;; *) -- 2.30.2