chiark / gitweb /
ubuntu-paste: convert to python3/argparse/requests
[bin.git] / bzr-upgrade
1 #! /bin/sh
2 set -e
3
4 cd "$1"
5
6 bzr info
7 du -s .bzr
8
9 if bzr upgrade; then
10         rm -rf .bzr.backup
11 elif [ -d .bzr.backup ]; then
12         rm -rf .bzr
13         mv .bzr.backup .bzr
14 fi
15
16 bzr info
17 du -s .bzr