Follow upstream changes -- rest
[git-darcs-import.git] / tests / unpull.sh
blob7570d15a752bd4a1130d6a11ea962397d70fde05
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1
5 mkdir temp1
6 cd temp1
7 darcs init
8 cat > f <<EOF
9 one
10 two
11 three
12 EOF
13 darcs rec -Ax -alm init
14 cp f g
15 cat > f <<EOF
16 three
17 one
18 EOF
19 darcs rec -Ax -am foo
20 echo y | darcs unpull -p foo
21 cmp f g
22 cd ..
23 rm -rf temp1