chiark / gitweb /
superseded by 'bzr reconfigure --use-shared'
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 21 Apr 2010 10:45:43 +0000 (11:45 +0100)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Wed, 21 Apr 2010 10:45:43 +0000 (11:45 +0100)
bzr-move-to-repository [deleted file]

diff --git a/bzr-move-to-repository b/bzr-move-to-repository
deleted file mode 100755 (executable)
index 9dfa288..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#! /bin/sh -e
-
-if [ -z "$1" ]; then
-       echo "Usage: $0 DIRECTORY" >&2
-       exit 1
-fi
-set -- "${1%/}"
-if [ -d "$1.nonrepo" ]; then
-       echo "$1.nonrepo exists; in-flight collision?" >&2
-       exit 1
-fi
-if [ ! -d "$1" ]; then
-       echo "$1 is not a directory!" >&2
-       exit 1
-fi
-if [ ! -d "$1/.bzr" ]; then
-       echo "$1 is not a Bazaar branch!" >&2
-       exit 1
-fi
-if [ ! -d "$1/.bzr/repository" ]; then
-       echo "$1 seems to already be in a repository!" >&2
-       exit 1
-fi
-if [ "$(bzr st "$1")" ]; then
-       echo "$1 has uncommitted changes!" >&2
-       exit 1
-fi
-
-mv -T "$1" "$1.nonrepo"
-bzr get "$1.nonrepo" "$1"
-cp -a "$1.nonrepo/.bzr/branch/branch.conf" "$1/.bzr/branch/branch.conf"
-# oem-config/ubiquity
-if [ -d "$1.nonrepo/d-i/source" ] && [ ! -d "$1/d-i/source" ]; then
-       mv "$1.nonrepo/d-i/source" "$1/d-i/source"
-fi
-rm -rf "$1.nonrepo"