Show More
@@ -1,20 +1,28 b'' | |||
|
1 | 1 | $ "$TESTDIR/hghave" execbit || exit 80 |
|
2 | 2 | |
|
3 | The g is crafted to have 2 filelog topological heads in a linear | |
|
4 | changeset graph | |
|
5 | ||
|
3 | 6 |
$ |
|
4 | ||
|
5 | 7 | $ cd a |
|
6 | 8 | $ echo a > a |
|
9 | $ echo f > f | |
|
7 | 10 | $ hg ci -Ama -d '1 0' |
|
8 | 11 | adding a |
|
12 | adding f | |
|
9 | 13 | |
|
10 | 14 | $ hg cp a b |
|
15 | $ hg cp f g | |
|
11 | 16 | $ hg ci -mb -d '2 0' |
|
12 | 17 | |
|
13 | 18 | $ mkdir dir |
|
14 | 19 | $ hg mv b dir |
|
20 | $ echo g >> g | |
|
21 | $ echo f >> f | |
|
15 | 22 | $ hg ci -mc -d '3 0' |
|
16 | 23 | |
|
17 | 24 | $ hg mv a b |
|
25 | $ hg cp -f f g | |
|
18 | 26 | $ echo a > d |
|
19 | 27 | $ hg add d |
|
20 | 28 | $ hg ci -md -d '4 0' |
@@ -23,7 +31,7 b'' | |||
|
23 | 31 | $ hg ci -me -d '5 0' |
|
24 | 32 | |
|
25 | 33 | $ hg log a |
|
26 |
changeset: 0: |
|
|
34 | changeset: 0:9161b9aeaf16 | |
|
27 | 35 | user: test |
|
28 | 36 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
29 | 37 | summary: a |
@@ -38,28 +46,28 b'' | |||
|
38 | 46 | -f, but no args |
|
39 | 47 | |
|
40 | 48 | $ hg log -f |
|
41 |
changeset: 4: |
|
|
49 | changeset: 4:7e4639b4691b | |
|
42 | 50 | tag: tip |
|
43 | 51 | user: test |
|
44 | 52 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
45 | 53 | summary: e |
|
46 | 54 | |
|
47 |
changeset: 3: |
|
|
55 | changeset: 3:2ca5ba701980 | |
|
48 | 56 | user: test |
|
49 | 57 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
50 | 58 | summary: d |
|
51 | 59 | |
|
52 |
changeset: 2: |
|
|
60 | changeset: 2:f8954cd4dc1f | |
|
53 | 61 | user: test |
|
54 | 62 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
55 | 63 | summary: c |
|
56 | 64 | |
|
57 |
changeset: 1: |
|
|
65 | changeset: 1:d89b0a12d229 | |
|
58 | 66 | user: test |
|
59 | 67 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
60 | 68 | summary: b |
|
61 | 69 | |
|
62 |
changeset: 0: |
|
|
70 | changeset: 0:9161b9aeaf16 | |
|
63 | 71 | user: test |
|
64 | 72 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
65 | 73 | summary: a |
@@ -68,10 +76,10 b'' | |||
|
68 | 76 | one rename |
|
69 | 77 | |
|
70 | 78 | $ hg log -vf a |
|
71 |
changeset: 0: |
|
|
79 | changeset: 0:9161b9aeaf16 | |
|
72 | 80 | user: test |
|
73 | 81 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
74 | files: a | |
|
82 | files: a f | |
|
75 | 83 | description: |
|
76 | 84 | a |
|
77 | 85 | |
@@ -80,7 +88,7 b' one rename' | |||
|
80 | 88 | many renames |
|
81 | 89 | |
|
82 | 90 | $ hg log -vf e |
|
83 |
changeset: 4: |
|
|
91 | changeset: 4:7e4639b4691b | |
|
84 | 92 | tag: tip |
|
85 | 93 | user: test |
|
86 | 94 | date: Thu Jan 01 00:00:05 1970 +0000 |
@@ -89,26 +97,26 b' many renames' | |||
|
89 | 97 | e |
|
90 | 98 | |
|
91 | 99 | |
|
92 |
changeset: 2: |
|
|
100 | changeset: 2:f8954cd4dc1f | |
|
93 | 101 | user: test |
|
94 | 102 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
95 | files: b dir/b | |
|
103 | files: b dir/b f g | |
|
96 | 104 | description: |
|
97 | 105 | c |
|
98 | 106 | |
|
99 | 107 | |
|
100 |
changeset: 1: |
|
|
108 | changeset: 1:d89b0a12d229 | |
|
101 | 109 | user: test |
|
102 | 110 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
103 | files: b | |
|
111 | files: b g | |
|
104 | 112 | description: |
|
105 | 113 | b |
|
106 | 114 | |
|
107 | 115 | |
|
108 |
changeset: 0: |
|
|
116 | changeset: 0:9161b9aeaf16 | |
|
109 | 117 | user: test |
|
110 | 118 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
111 | files: a | |
|
119 | files: a f | |
|
112 | 120 | description: |
|
113 | 121 | a |
|
114 | 122 | |
@@ -118,34 +126,34 b' many renames' | |||
|
118 | 126 | log -pf dir/b |
|
119 | 127 | |
|
120 | 128 | $ hg log -pf dir/b |
|
121 |
changeset: 2: |
|
|
129 | changeset: 2:f8954cd4dc1f | |
|
122 | 130 | user: test |
|
123 | 131 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
124 | 132 | summary: c |
|
125 | 133 | |
|
126 | diff -r 784de7cef101 -r 41dd4284081e dir/b | |
|
134 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
|
127 | 135 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
128 | 136 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 |
|
129 | 137 | @@ -0,0 +1,1 @@ |
|
130 | 138 | +a |
|
131 | 139 | |
|
132 |
changeset: 1: |
|
|
140 | changeset: 1:d89b0a12d229 | |
|
133 | 141 | user: test |
|
134 | 142 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
135 | 143 | summary: b |
|
136 | 144 | |
|
137 | diff -r 8580ff50825a -r 784de7cef101 b | |
|
145 | diff -r 9161b9aeaf16 -r d89b0a12d229 b | |
|
138 | 146 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
139 | 147 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 |
|
140 | 148 | @@ -0,0 +1,1 @@ |
|
141 | 149 | +a |
|
142 | 150 | |
|
143 |
changeset: 0: |
|
|
151 | changeset: 0:9161b9aeaf16 | |
|
144 | 152 | user: test |
|
145 | 153 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
146 | 154 | summary: a |
|
147 | 155 | |
|
148 |
diff -r 000000000000 -r |
|
|
156 | diff -r 000000000000 -r 9161b9aeaf16 a | |
|
149 | 157 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
150 | 158 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
|
151 | 159 | @@ -0,0 +1,1 @@ |
@@ -155,26 +163,26 b' log -pf dir/b' | |||
|
155 | 163 | log -vf dir/b |
|
156 | 164 | |
|
157 | 165 | $ hg log -vf dir/b |
|
158 |
changeset: 2: |
|
|
166 | changeset: 2:f8954cd4dc1f | |
|
159 | 167 | user: test |
|
160 | 168 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
161 | files: b dir/b | |
|
169 | files: b dir/b f g | |
|
162 | 170 | description: |
|
163 | 171 | c |
|
164 | 172 | |
|
165 | 173 | |
|
166 |
changeset: 1: |
|
|
174 | changeset: 1:d89b0a12d229 | |
|
167 | 175 | user: test |
|
168 | 176 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
169 | files: b | |
|
177 | files: b g | |
|
170 | 178 | description: |
|
171 | 179 | b |
|
172 | 180 | |
|
173 | 181 | |
|
174 |
changeset: 0: |
|
|
182 | changeset: 0:9161b9aeaf16 | |
|
175 | 183 | user: test |
|
176 | 184 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
177 | files: a | |
|
185 | files: a f | |
|
178 | 186 | description: |
|
179 | 187 | a |
|
180 | 188 | |
@@ -185,9 +193,9 b' log copies with --copies' | |||
|
185 | 193 | |
|
186 | 194 | $ hg log -vC --template '{rev} {file_copies}\n' |
|
187 | 195 | 4 e (dir/b) |
|
188 | 3 b (a) | |
|
196 | 3 b (a)g (f) | |
|
189 | 197 | 2 dir/b (b) |
|
190 | 1 b (a) | |
|
198 | 1 b (a)g (f) | |
|
191 | 199 | 0 |
|
192 | 200 | |
|
193 | 201 | log copies switch without --copies, with old filecopy template |
@@ -203,16 +211,16 b' log copies switch with --copies' | |||
|
203 | 211 | |
|
204 | 212 | $ hg log -vC --template '{rev} {file_copies_switch}\n' |
|
205 | 213 | 4 e (dir/b) |
|
206 | 3 b (a) | |
|
214 | 3 b (a)g (f) | |
|
207 | 215 | 2 dir/b (b) |
|
208 | 1 b (a) | |
|
216 | 1 b (a)g (f) | |
|
209 | 217 | 0 |
|
210 | 218 | |
|
211 | 219 | |
|
212 | 220 | log copies with hardcoded style and with --style=default |
|
213 | 221 | |
|
214 | 222 | $ hg log -vC -r4 |
|
215 |
changeset: 4: |
|
|
223 | changeset: 4:7e4639b4691b | |
|
216 | 224 | tag: tip |
|
217 | 225 | user: test |
|
218 | 226 | date: Thu Jan 01 00:00:05 1970 +0000 |
@@ -223,7 +231,7 b' log copies with hardcoded style and with' | |||
|
223 | 231 | |
|
224 | 232 | |
|
225 | 233 | $ hg log -vC -r4 --style=default |
|
226 |
changeset: 4: |
|
|
234 | changeset: 4:7e4639b4691b | |
|
227 | 235 | tag: tip |
|
228 | 236 | user: test |
|
229 | 237 | date: Thu Jan 01 00:00:05 1970 +0000 |
@@ -259,15 +267,15 b' log copies, execute bit set' | |||
|
259 | 267 | log -p d |
|
260 | 268 | |
|
261 | 269 | $ hg log -pv d |
|
262 |
changeset: 3: |
|
|
270 | changeset: 3:2ca5ba701980 | |
|
263 | 271 | user: test |
|
264 | 272 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
265 | files: a b d | |
|
273 | files: a b d g | |
|
266 | 274 | description: |
|
267 | 275 | d |
|
268 | 276 | |
|
269 | 277 | |
|
270 | diff -r 41dd4284081e -r 7c6c671bb7cc d | |
|
278 | diff -r f8954cd4dc1f -r 2ca5ba701980 d | |
|
271 | 279 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
272 | 280 | +++ b/d Thu Jan 01 00:00:04 1970 +0000 |
|
273 | 281 | @@ -0,0 +1,1 @@ |
@@ -278,18 +286,18 b' log -p d' | |||
|
278 | 286 | log --removed file |
|
279 | 287 | |
|
280 | 288 | $ hg log --removed -v a |
|
281 |
changeset: 3: |
|
|
289 | changeset: 3:2ca5ba701980 | |
|
282 | 290 | user: test |
|
283 | 291 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
284 | files: a b d | |
|
292 | files: a b d g | |
|
285 | 293 | description: |
|
286 | 294 | d |
|
287 | 295 | |
|
288 | 296 | |
|
289 |
changeset: 0: |
|
|
297 | changeset: 0:9161b9aeaf16 | |
|
290 | 298 | user: test |
|
291 | 299 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
292 | files: a | |
|
300 | files: a f | |
|
293 | 301 | description: |
|
294 | 302 | a |
|
295 | 303 | |
@@ -298,10 +306,10 b' log --removed file' | |||
|
298 | 306 | log --removed revrange file |
|
299 | 307 | |
|
300 | 308 | $ hg log --removed -v -r0:2 a |
|
301 |
changeset: 0: |
|
|
309 | changeset: 0:9161b9aeaf16 | |
|
302 | 310 | user: test |
|
303 | 311 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
304 | files: a | |
|
312 | files: a f | |
|
305 | 313 | description: |
|
306 | 314 | a |
|
307 | 315 |
General Comments 0
You need to be logged in to leave comments.
Login now