Follow upstream changes -- rest
[git-darcs-import.git] / tests / send_apply.sh
bloba9bed7d28de84a4430d39b295c671bba71eba81a
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp1 temp2
5 mkdir temp1 temp2
7 cd temp2
8 darcs init
10 cd ../temp1
11 darcs init
12 touch foo bar
13 darcs add foo bar
14 darcs record -a -m add_foo_bar -A x
15 darcs mv foo zig
16 darcs mv bar foo
17 darcs mv zig bar
18 darcs record -a -m swap_foo_bar -A x
19 darcs send --author=me --output=funpatch --dont-sign -a ../temp2
20 cd ../temp2
21 darcs apply ../temp1/funpatch
22 cd ..
23 cmp temp1/bar temp2/bar
24 rm -rf temp2
26 mkdir temp2
27 cd temp2
28 darcs init
29 darcs apply < ../temp1/funpatch
30 cd ..
31 cmp temp1/bar temp2/bar
34 rm -rf temp1 temp2