From: Colin Watson Date: Fri, 20 Jul 2007 06:39:26 +0000 (+0000) Subject: support bzr checkouts X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=499cabb0a1773a426c59838a523f73ec62c6127f support bzr checkouts --- 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 ;; *)