##// END OF EJS Templates
tests: fix test-casefolding.t output...
Matt Harbison -
r23779:427b8728 default
parent child Browse files
Show More
@@ -1,210 +1,213 b''
1 1 #require icasefs
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 committing files:
27 28 a
29 committing manifest
30 committing changelog
28 31 committed changeset 0:07f4944404050f47db2e5c5071e0e84e7a27bba9
29 32
30 33 Case-changing renames should work:
31 34
32 35 $ hg mv a A
33 36 $ hg mv A a
34 37 $ hg st
35 38
36 39 test changing case of path components
37 40
38 41 $ mkdir D
39 42 $ echo b > D/b
40 43 $ hg ci -Am addb D/b
41 44 $ hg mv D/b d/b
42 45 D/b: not overwriting - file exists
43 46 $ hg mv D/b d/c
44 47 $ hg st
45 48 A D/c
46 49 R D/b
47 50 $ mv D temp
48 51 $ mv temp d
49 52 $ hg st
50 53 A D/c
51 54 R D/b
52 55 $ hg revert -aq
53 56 $ rm d/c
54 57 $ echo c > D/c
55 58 $ hg add D/c
56 59 $ hg st
57 60 A D/c
58 61 $ hg ci -m addc D/c
59 62 $ hg mv d/b d/e
60 63 moving D/b to D/e (glob)
61 64 $ hg st
62 65 A D/e
63 66 R D/b
64 67 $ hg revert -aq
65 68 $ rm d/e
66 69 $ hg mv d/b D/B
67 70 moving D/b to D/B (glob)
68 71 $ hg st
69 72 A D/B
70 73 R D/b
71 74 $ cd ..
72 75
73 76 test case collision between revisions (issue912)
74 77
75 78 $ hg init repo3
76 79 $ cd repo3
77 80 $ echo a > a
78 81 $ hg ci -Am adda
79 82 adding a
80 83 $ hg rm a
81 84 $ hg ci -Am removea
82 85 $ echo A > A
83 86
84 87 on linux hfs keeps the old case stored, force it
85 88
86 89 $ mv a aa
87 90 $ mv aa A
88 91 $ hg ci -Am addA
89 92 adding A
90 93
91 94 used to fail under case insensitive fs
92 95
93 96 $ hg up -C 0
94 97 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
95 98 $ hg up -C
96 99 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
97 100
98 101 no clobbering of untracked files with wrong casing
99 102
100 103 $ hg up -r null
101 104 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
102 105 $ echo gold > a
103 106 $ hg up
104 107 A: untracked file differs
105 108 abort: untracked files in working directory differ from files in requested revision
106 109 [255]
107 110 $ cat a
108 111 gold
109 112 $ rm a
110 113
111 114 test that normal file in different case on target context is not
112 115 unlinked by largefiles extension.
113 116
114 117 $ cat >> .hg/hgrc <<EOF
115 118 > [extensions]
116 119 > largefiles=
117 120 > EOF
118 121 $ hg update -q -C 1
119 122 $ hg status -A
120 123 $ echo 'A as largefiles' > A
121 124 $ hg add --large A
122 125 $ hg commit -m '#3'
123 126 created new head
124 127 $ hg manifest -r 3
125 128 .hglf/A
126 129 $ hg manifest -r 0
127 130 a
128 131 $ hg update -q -C 0
129 132 $ hg status -A
130 133 C a
131 134 $ hg update -q -C 3
132 135 $ hg update -q 0
133 136
134 137 $ cd ..
135 138
136 139 issue 3342: file in nested directory causes unexpected abort
137 140
138 141 $ hg init issue3342
139 142 $ cd issue3342
140 143
141 144 $ mkdir -p a/B/c/D
142 145 $ echo e > a/B/c/D/e
143 146 $ hg add a/B/c/D/e
144 147
145 148 $ cd ..
146 149
147 150 issue 3340: mq does not handle case changes correctly
148 151
149 152 in addition to reported case, 'hg qrefresh' is also tested against
150 153 case changes.
151 154
152 155 $ echo "[extensions]" >> $HGRCPATH
153 156 $ echo "mq=" >> $HGRCPATH
154 157
155 158 $ hg init issue3340
156 159 $ cd issue3340
157 160
158 161 $ echo a > mIxEdCaSe
159 162 $ hg add mIxEdCaSe
160 163 $ hg commit -m '#0'
161 164 $ hg rename mIxEdCaSe tmp
162 165 $ hg rename tmp MiXeDcAsE
163 166 $ hg status -A
164 167 A MiXeDcAsE
165 168 mIxEdCaSe
166 169 R mIxEdCaSe
167 170 $ hg qnew changecase
168 171 $ hg status -A
169 172 C MiXeDcAsE
170 173
171 174 $ hg qpop -a
172 175 popping changecase
173 176 patch queue now empty
174 177 $ hg qnew refresh-casechange
175 178 $ hg status -A
176 179 C mIxEdCaSe
177 180 $ hg rename mIxEdCaSe tmp
178 181 $ hg rename tmp MiXeDcAsE
179 182 $ hg status -A
180 183 A MiXeDcAsE
181 184 mIxEdCaSe
182 185 R mIxEdCaSe
183 186 $ hg qrefresh
184 187 $ hg status -A
185 188 C MiXeDcAsE
186 189
187 190 $ hg qpop -a
188 191 popping refresh-casechange
189 192 patch queue now empty
190 193 $ hg qnew refresh-pattern
191 194 $ hg status
192 195 $ echo A > A
193 196 $ hg add
194 197 adding A
195 198 $ hg qrefresh a # issue 3271, qrefresh with file handled case wrong
196 199 $ hg status # empty status means the qrefresh worked
197 200
198 201 #if osx
199 202
200 203 We assume anyone running the tests on a case-insensitive volume on OS
201 204 X will be using HFS+. If that's not true, this test will fail.
202 205
203 206 $ rm A
204 207 >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
205 208 $ hg status
206 209 M A
207 210
208 211 #endif
209 212
210 213 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now