##// END OF EJS Templates
tests: unify test-casefolding
Brodie Rao -
r12603:f1646efc default
parent child Browse files
Show More
@@ -1,44 +1,59 b''
1 #!/bin/sh
1 $ "$TESTDIR/hghave" icasefs || exit 80
2
2
3 "$TESTDIR/hghave" icasefs || exit 80
3 test file addition with bad case
4
4
5 echo '% test file addition with bad case'
5 $ hg init repo1
6 hg init repo1
6 $ cd repo1
7 cd repo1
7 $ echo a > a
8 echo a > a
8 $ hg add A
9 hg add A
9 adding a
10 hg st
10 $ hg st
11 hg ci -m adda
11 A a
12 hg manifest
12 $ hg ci -m adda
13 cd ..
13 $ hg manifest
14 a
15 $ cd ..
16
17 test case collision on rename (issue750)
18
19 $ hg init repo2
20 $ cd repo2
21 $ echo a > a
22 $ hg --debug ci -Am adda
23 adding a
24 a
25 committed changeset 0:07f4944404050f47db2e5c5071e0e84e7a27bba9
26 $ hg mv a A
27 A: not overwriting - file exists
28
29 'a' used to be removed under windows
14
30
15 echo '% test case collision on rename (issue 750)'
31 $ test -f a || echo 'a is missing'
16 hg init repo2
32 $ hg st
17 cd repo2
33 $ cd ..
18 echo a > a
34
19 hg --debug ci -Am adda
35 test case collision between revisions (issue912)
20 hg mv a A
36
21 # 'a' used to be removed under windows
37 $ hg init repo3
22 test -f a || echo 'a is missing'
38 $ cd repo3
23 hg st
39 $ echo a > a
24 cd ..
40 $ hg ci -Am adda
41 adding a
42 $ hg rm a
43 $ hg ci -Am removea
44 $ echo A > A
25
45
26 echo '% test case collision between revisions (issue 912)'
46 on linux hfs keeps the old case stored, force it
27 hg init repo3
47
28 cd repo3
48 $ mv a aa
29 echo a > a
49 $ mv aa A
30 hg ci -Am adda
50 $ hg ci -Am addA
31 hg rm a
51 adding A
32 hg ci -Am removea
33 echo A > A
34 # on linux hfs keeps the old case stored, force it
35 mv a aa
36 mv aa A
37 hg ci -Am addA
38 # Used to fail under case insensitive fs
39 hg up -C 0
40 hg up -C
41 cd ..
42
52
53 used to fail under case insensitive fs
43
54
44
55 $ hg up -C 0
56 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
57 $ hg up -C
58 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
59 $ cd ..
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now