Show More
@@ -1,163 +1,163 b'' | |||||
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 |
|
29 | |||
30 | Case-changing renames should work: |
|
30 | Case-changing renames should work: | |
31 |
|
31 | |||
32 | $ hg mv a A |
|
32 | $ hg mv a A | |
33 | $ hg mv A a |
|
33 | $ hg mv A a | |
34 | $ hg st |
|
34 | $ hg st | |
35 |
|
35 | |||
36 | test changing case of path components |
|
36 | test changing case of path components | |
37 |
|
37 | |||
38 | $ mkdir D |
|
38 | $ mkdir D | |
39 | $ echo b > D/b |
|
39 | $ echo b > D/b | |
40 | $ hg ci -Am addb D/b |
|
40 | $ hg ci -Am addb D/b | |
41 | $ hg mv D/b d/b |
|
41 | $ hg mv D/b d/b | |
42 | D/b: not overwriting - file exists |
|
42 | D/b: not overwriting - file exists | |
43 | $ hg mv D/b d/c |
|
43 | $ hg mv D/b d/c | |
44 | $ hg st |
|
44 | $ hg st | |
45 | A D/c |
|
45 | A D/c | |
46 | R D/b |
|
46 | R D/b | |
47 | $ mv D temp |
|
47 | $ mv D temp | |
48 | $ mv temp d |
|
48 | $ mv temp d | |
49 | $ hg st |
|
49 | $ hg st | |
50 | A D/c |
|
50 | A D/c | |
51 | R D/b |
|
51 | R D/b | |
52 | $ hg revert -aq |
|
52 | $ hg revert -aq | |
53 | $ rm d/c |
|
53 | $ rm d/c | |
54 | $ echo c > D/c |
|
54 | $ echo c > D/c | |
55 | $ hg add D/c |
|
55 | $ hg add D/c | |
56 | $ hg st |
|
56 | $ hg st | |
57 | A D/c |
|
57 | A D/c | |
58 | $ hg ci -m addc D/c |
|
58 | $ hg ci -m addc D/c | |
59 | $ hg mv d/b d/e |
|
59 | $ hg mv d/b d/e | |
60 | moving D/b to D/e |
|
60 | moving D/b to D/e (glob) | |
61 | $ hg st |
|
61 | $ hg st | |
62 | A D/e |
|
62 | A D/e | |
63 | R D/b |
|
63 | R D/b | |
64 | $ hg revert -aq |
|
64 | $ hg revert -aq | |
65 | $ rm d/e |
|
65 | $ rm d/e | |
66 | $ hg mv d/b D/B |
|
66 | $ hg mv d/b D/B | |
67 | moving D/b to D/B |
|
67 | moving D/b to D/B (glob) | |
68 | $ hg st |
|
68 | $ hg st | |
69 | A D/B |
|
69 | A D/B | |
70 | R D/b |
|
70 | R D/b | |
71 | $ cd .. |
|
71 | $ cd .. | |
72 |
|
72 | |||
73 | test case collision between revisions (issue912) |
|
73 | test case collision between revisions (issue912) | |
74 |
|
74 | |||
75 | $ hg init repo3 |
|
75 | $ hg init repo3 | |
76 | $ cd repo3 |
|
76 | $ cd repo3 | |
77 | $ echo a > a |
|
77 | $ echo a > a | |
78 | $ hg ci -Am adda |
|
78 | $ hg ci -Am adda | |
79 | adding a |
|
79 | adding a | |
80 | $ hg rm a |
|
80 | $ hg rm a | |
81 | $ hg ci -Am removea |
|
81 | $ hg ci -Am removea | |
82 | $ echo A > A |
|
82 | $ echo A > A | |
83 |
|
83 | |||
84 | on linux hfs keeps the old case stored, force it |
|
84 | on linux hfs keeps the old case stored, force it | |
85 |
|
85 | |||
86 | $ mv a aa |
|
86 | $ mv a aa | |
87 | $ mv aa A |
|
87 | $ mv aa A | |
88 | $ hg ci -Am addA |
|
88 | $ hg ci -Am addA | |
89 | adding A |
|
89 | adding A | |
90 |
|
90 | |||
91 | used to fail under case insensitive fs |
|
91 | used to fail under case insensitive fs | |
92 |
|
92 | |||
93 | $ hg up -C 0 |
|
93 | $ hg up -C 0 | |
94 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
94 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
95 | $ hg up -C |
|
95 | $ hg up -C | |
96 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
96 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
97 |
|
97 | |||
98 | no clobbering of untracked files with wrong casing |
|
98 | no clobbering of untracked files with wrong casing | |
99 |
|
99 | |||
100 | $ hg up -r null |
|
100 | $ hg up -r null | |
101 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
101 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
102 | $ echo gold > a |
|
102 | $ echo gold > a | |
103 | $ hg up |
|
103 | $ hg up | |
104 | A: untracked file differs |
|
104 | A: untracked file differs | |
105 | abort: untracked files in working directory differ from files in requested revision |
|
105 | abort: untracked files in working directory differ from files in requested revision | |
106 | [255] |
|
106 | [255] | |
107 | $ cat a |
|
107 | $ cat a | |
108 | gold |
|
108 | gold | |
109 |
|
109 | |||
110 | $ cd .. |
|
110 | $ cd .. | |
111 |
|
111 | |||
112 | issue 3342: file in nested directory causes unexpected abort |
|
112 | issue 3342: file in nested directory causes unexpected abort | |
113 |
|
113 | |||
114 | $ hg init issue3342 |
|
114 | $ hg init issue3342 | |
115 | $ cd issue3342 |
|
115 | $ cd issue3342 | |
116 |
|
116 | |||
117 | $ mkdir -p a/B/c/D |
|
117 | $ mkdir -p a/B/c/D | |
118 | $ echo e > a/B/c/D/e |
|
118 | $ echo e > a/B/c/D/e | |
119 | $ hg add a/B/c/D/e |
|
119 | $ hg add a/B/c/D/e | |
120 |
|
120 | |||
121 | $ cd .. |
|
121 | $ cd .. | |
122 |
|
122 | |||
123 | issue 3340: mq does not handle case changes correctly |
|
123 | issue 3340: mq does not handle case changes correctly | |
124 |
|
124 | |||
125 | in addition to reported case, 'hg qrefresh' is also tested against |
|
125 | in addition to reported case, 'hg qrefresh' is also tested against | |
126 | case changes. |
|
126 | case changes. | |
127 |
|
127 | |||
128 | $ echo "[extensions]" >> $HGRCPATH |
|
128 | $ echo "[extensions]" >> $HGRCPATH | |
129 | $ echo "mq=" >> $HGRCPATH |
|
129 | $ echo "mq=" >> $HGRCPATH | |
130 |
|
130 | |||
131 | $ hg init issue3340 |
|
131 | $ hg init issue3340 | |
132 | $ cd issue3340 |
|
132 | $ cd issue3340 | |
133 |
|
133 | |||
134 | $ echo a > mIxEdCaSe |
|
134 | $ echo a > mIxEdCaSe | |
135 | $ hg add mIxEdCaSe |
|
135 | $ hg add mIxEdCaSe | |
136 | $ hg commit -m '#0' |
|
136 | $ hg commit -m '#0' | |
137 | $ hg rename mIxEdCaSe tmp |
|
137 | $ hg rename mIxEdCaSe tmp | |
138 | $ hg rename tmp MiXeDcAsE |
|
138 | $ hg rename tmp MiXeDcAsE | |
139 | $ hg status -A |
|
139 | $ hg status -A | |
140 | A MiXeDcAsE |
|
140 | A MiXeDcAsE | |
141 | mIxEdCaSe |
|
141 | mIxEdCaSe | |
142 | R mIxEdCaSe |
|
142 | R mIxEdCaSe | |
143 | $ hg qnew changecase |
|
143 | $ hg qnew changecase | |
144 | $ hg status -A |
|
144 | $ hg status -A | |
145 | C MiXeDcAsE |
|
145 | C MiXeDcAsE | |
146 |
|
146 | |||
147 | $ hg qpop -a |
|
147 | $ hg qpop -a | |
148 | popping changecase |
|
148 | popping changecase | |
149 | patch queue now empty |
|
149 | patch queue now empty | |
150 | $ hg qnew refresh-casechange |
|
150 | $ hg qnew refresh-casechange | |
151 | $ hg status -A |
|
151 | $ hg status -A | |
152 | C mIxEdCaSe |
|
152 | C mIxEdCaSe | |
153 | $ hg rename mIxEdCaSe tmp |
|
153 | $ hg rename mIxEdCaSe tmp | |
154 | $ hg rename tmp MiXeDcAsE |
|
154 | $ hg rename tmp MiXeDcAsE | |
155 | $ hg status -A |
|
155 | $ hg status -A | |
156 | A MiXeDcAsE |
|
156 | A MiXeDcAsE | |
157 | mIxEdCaSe |
|
157 | mIxEdCaSe | |
158 | R mIxEdCaSe |
|
158 | R mIxEdCaSe | |
159 | $ hg qrefresh |
|
159 | $ hg qrefresh | |
160 | $ hg status -A |
|
160 | $ hg status -A | |
161 | C MiXeDcAsE |
|
161 | C MiXeDcAsE | |
162 |
|
162 | |||
163 | $ cd .. |
|
163 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now