##// END OF EJS Templates
tests: remove case-folding false positive
Matt Mackall -
r16288:09f2bb3a stable
parent child Browse files
Show More
@@ -1,75 +1,74
1 $ "$TESTDIR/hghave" icasefs || exit 80
1 $ "$TESTDIR/hghave" icasefs || exit 80
2
2
3 $ hg debugfs | grep 'case-sensitive:'
3 $ hg debugfs | grep 'case-sensitive:'
4 case-sensitive: no
4 case-sensitive: no
5
5
6 test file addition with bad case
6 test file addition with bad case
7
7
8 $ hg init repo1
8 $ hg init repo1
9 $ cd repo1
9 $ cd repo1
10 $ echo a > a
10 $ echo a > a
11 $ hg add A
11 $ hg add A
12 adding a
12 adding a
13 $ hg st
13 $ hg st
14 A a
14 A a
15 $ hg ci -m adda
15 $ hg ci -m adda
16 $ hg manifest
16 $ hg manifest
17 a
17 a
18 $ cd ..
18 $ cd ..
19
19
20 test case collision on rename (issue750)
20 test case collision on rename (issue750)
21
21
22 $ hg init repo2
22 $ hg init repo2
23 $ cd repo2
23 $ cd repo2
24 $ echo a > a
24 $ echo a > a
25 $ hg --debug ci -Am adda
25 $ hg --debug ci -Am adda
26 adding a
26 adding a
27 a
27 a
28 committed changeset 0:07f4944404050f47db2e5c5071e0e84e7a27bba9
28 committed changeset 0:07f4944404050f47db2e5c5071e0e84e7a27bba9
29 $ hg mv a A
29
30 A: not overwriting - file exists
30 Case-changing renames should work:
31
31
32 'a' used to be removed under windows
32 $ hg mv a A
33
33 $ hg mv A a
34 $ test -f a || echo 'a is missing'
35 $ hg st
34 $ hg st
36 $ cd ..
35 $ cd ..
37
36
38 test case collision between revisions (issue912)
37 test case collision between revisions (issue912)
39
38
40 $ hg init repo3
39 $ hg init repo3
41 $ cd repo3
40 $ cd repo3
42 $ echo a > a
41 $ echo a > a
43 $ hg ci -Am adda
42 $ hg ci -Am adda
44 adding a
43 adding a
45 $ hg rm a
44 $ hg rm a
46 $ hg ci -Am removea
45 $ hg ci -Am removea
47 $ echo A > A
46 $ echo A > A
48
47
49 on linux hfs keeps the old case stored, force it
48 on linux hfs keeps the old case stored, force it
50
49
51 $ mv a aa
50 $ mv a aa
52 $ mv aa A
51 $ mv aa A
53 $ hg ci -Am addA
52 $ hg ci -Am addA
54 adding A
53 adding A
55
54
56 used to fail under case insensitive fs
55 used to fail under case insensitive fs
57
56
58 $ hg up -C 0
57 $ hg up -C 0
59 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
58 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
60 $ hg up -C
59 $ hg up -C
61 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
60 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
62
61
63 no clobbering of untracked files with wrong casing
62 no clobbering of untracked files with wrong casing
64
63
65 $ hg up -r null
64 $ hg up -r null
66 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
65 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
67 $ echo gold > a
66 $ echo gold > a
68 $ hg up
67 $ hg up
69 a: untracked file differs
68 a: untracked file differs
70 abort: untracked files in working directory differ from files in requested revision
69 abort: untracked files in working directory differ from files in requested revision
71 [255]
70 [255]
72 $ cat a
71 $ cat a
73 gold
72 gold
74
73
75 $ cd ..
74 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now