Paste #465192

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash

set -o xtrace
set -o pipefail
set -e

cd ~/

bzr branch lp:cloud-init

cd cloud-init/

git init

bzr fast-export --plain . | git fast-import

for t in `git tag | grep "^ubuntu"`; do
  echo "Removing tag $t"
  git  tag -d $t
done

git tag -d "trunk-karmic-merge"

rm -rf .bzr/

echo "Rebasing the stackforge branch"

cd ~/

git clone https://github.com/stackforge/cloud-init.git cloud-init-new

cd cloud-init-new/

git checkout origin/0.7.x

git checkout 0.7.x

git remote add upstream ~/cloud-init

git fetch upstream

git rebase upstream/master