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