Follow upstream changes -- rest
[git-darcs-import.git] / tests / sametwice.sh
blobdfa07beda3a318f49e42a936fee97aa0b6f3930a
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1 temp2
5 mkdir temp1
6 cd temp1
7 darcs init
8 echo record author me > _darcs/prefs/defaults
9 echo ALL all >> _darcs/prefs/defaults
10 echo ALL verbose >> _darcs/prefs/defaults
11 echo ALL ignore-times >> _darcs/prefs/defaults
12 touch foo
13 darcs add foo
14 darcs whatsnew
15 darcs record -m add_foo
16 echo hello >> foo
17 darcs record -m mod_foo
18 cd ..
19 darcs get --repo-name temp2 temp1
20 cd temp2
21 cp ../temp1/_darcs/prefs/defaults _darcs/prefs
22 echo y/d/y | tr / \\012 | darcs unpull --interactive
23 test -f foo -a ! -s foo
24 echo hello >> foo
25 darcs record -m mod_foo_again
26 darcs pull ../temp1
27 test -s foo
28 cd ..
29 rm -rf temp1 temp2