File: bad_pending_after_pull.sh

package info (click to toggle)
darcs 2.0.2-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,400 kB
  • ctags: 1,048
  • sloc: haskell: 24,937; perl: 9,736; sh: 3,369; ansic: 1,913; makefile: 17; xml: 14
file content (51 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (2)
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
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash

set -ev

rm -fr temp1 temp2

mkdir temp1
cd temp1
darcs init

echo abc > A
darcs add A
echo def > B1
darcs add B1
# darcs record -all --patch-name patch1 # this way it doesn't trigger the bug
for i in 1 2 3 4 5 6 7 8 9 11; do echo y; done | darcs record --patch-name patch1

darcs mv B1 B2
darcs record --all --patch-name patch2
cd ..

mkdir temp2
cd temp2
darcs init
darcs pull --all ../temp1
darcs whatsnew | grep 'No changes'
cd ..

rm -fr temp1 temp2

# issue494: note that in this test, we deliberately select filenames
# with a backwards sorting order
mkdir temp1
cd temp1
darcs init
echo abc > b
darcs add b
darcs record --all -m patch1
darcs mv b a
echo def > a
darcs record --all -m patch2
cd ..

mkdir temp2
cd temp2
darcs init
darcs pull --all ../temp1
darcs whatsnew | grep 'No changes'
cd ..

rm -fr temp1 temp2