Follow upstream changes -- rest
[git-darcs-import.git] / tests / bad_pending_after_pull.sh
blob635692bf0f55a379939d788e120cce5bb4521a3e
1 #!/usr/bin/env bash
3 set -ev
5 rm -fr temp1 temp2
7 mkdir temp1
8 cd temp1
9 darcs init
11 echo abc > A
12 darcs add A
13 echo def > B1
14 darcs add B1
15 # darcs record -all --patch-name patch1 # this way it doesn't trigger the bug
16 for i in 1 2 3 4 5 6 7 8 9 11; do echo y; done | darcs record --patch-name patch1
18 darcs mv B1 B2
19 darcs record --all --patch-name patch2
20 cd ..
22 mkdir temp2
23 cd temp2
24 darcs init
25 darcs pull --all ../temp1
26 darcs whatsnew | grep 'No changes'
27 cd ..
29 rm -fr temp1 temp2
31 # issue494: note that in this test, we deliberately select filenames
32 # with a backwards sorting order
33 mkdir temp1
34 cd temp1
35 darcs init
36 echo abc > b
37 darcs add b
38 darcs record --all -m patch1
39 darcs mv b a
40 echo def > a
41 darcs record --all -m patch2
42 cd ..
44 mkdir temp2
45 cd temp2
46 darcs init
47 darcs pull --all ../temp1
48 darcs whatsnew | grep 'No changes'
49 cd ..
51 rm -fr temp1 temp2