##// END OF EJS Templates
test-casefolding: fix wrong case on hfs on linux...
Simon Heimberg -
r9396:5cd14e1e default
parent child Browse files
Show More
@@ -1,41 +1,44
1 #!/bin/sh
1 #!/bin/sh
2
2
3 "$TESTDIR/hghave" icasefs || exit 80
3 "$TESTDIR/hghave" icasefs || exit 80
4
4
5 echo '% test file addition with bad case'
5 echo '% test file addition with bad case'
6 hg init repo1
6 hg init repo1
7 cd repo1
7 cd repo1
8 echo a > a
8 echo a > a
9 hg add A
9 hg add A
10 hg st
10 hg st
11 hg ci -m adda
11 hg ci -m adda
12 hg manifest
12 hg manifest
13 cd ..
13 cd ..
14
14
15 echo '% test case collision on rename (issue 750)'
15 echo '% test case collision on rename (issue 750)'
16 hg init repo2
16 hg init repo2
17 cd repo2
17 cd repo2
18 echo a > a
18 echo a > a
19 hg --debug ci -Am adda
19 hg --debug ci -Am adda
20 hg mv a A
20 hg mv a A
21 # 'a' used to be removed under windows
21 # 'a' used to be removed under windows
22 test -f a || echo 'a is missing'
22 test -f a || echo 'a is missing'
23 hg st
23 hg st
24 cd ..
24 cd ..
25
25
26 echo '% test case collision between revisions (issue 912)'
26 echo '% test case collision between revisions (issue 912)'
27 hg init repo3
27 hg init repo3
28 cd repo3
28 cd repo3
29 echo a > a
29 echo a > a
30 hg ci -Am adda
30 hg ci -Am adda
31 hg rm a
31 hg rm a
32 hg ci -Am removea
32 hg ci -Am removea
33 echo A > A
33 echo A > A
34 # on linux hfs keeps the old case stored, force it
35 mv a aa
36 mv aa A
34 hg ci -Am addA
37 hg ci -Am addA
35 # Used to fail under case insensitive fs
38 # Used to fail under case insensitive fs
36 hg up -C 0
39 hg up -C 0
37 hg up -C
40 hg up -C
38 cd ..
41 cd ..
39
42
40
43
41
44
General Comments 0
You need to be logged in to leave comments. Login now