From 85568b89e39b4b80ab2b89083683bf92eed5250d Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 21 Apr 2010 11:45:43 +0100 Subject: [PATCH] superseded by 'bzr reconfigure --use-shared' --- bzr-move-to-repository | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 bzr-move-to-repository diff --git a/bzr-move-to-repository b/bzr-move-to-repository deleted file mode 100755 index 9dfa288..0000000 --- a/bzr-move-to-repository +++ /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" -- 2.30.2