##// END OF EJS Templates
py3: add b'' prefixes to make printrevset.py work in test-glog.t...
Pulkit Goyal -
r36199:f1addba3 default
parent child Browse files
Show More
@@ -1,3487 +1,3487 b''
1 1 @ (34) head
2 2 |
3 3 | o (33) head
4 4 | |
5 5 o | (32) expand
6 6 |\ \
7 7 | o \ (31) expand
8 8 | |\ \
9 9 | | o \ (30) expand
10 10 | | |\ \
11 11 | | | o | (29) regular commit
12 12 | | | | |
13 13 | | o | | (28) merge zero known
14 14 | | |\ \ \
15 15 o | | | | | (27) collapse
16 16 |/ / / / /
17 17 | | o---+ (26) merge one known; far right
18 18 | | | | |
19 19 +---o | | (25) merge one known; far left
20 20 | | | | |
21 21 | | o | | (24) merge one known; immediate right
22 22 | | |\| |
23 23 | | o | | (23) merge one known; immediate left
24 24 | |/| | |
25 25 +---o---+ (22) merge two known; one far left, one far right
26 26 | | / /
27 27 o | | | (21) expand
28 28 |\ \ \ \
29 29 | o---+-+ (20) merge two known; two far right
30 30 | / / /
31 31 o | | | (19) expand
32 32 |\ \ \ \
33 33 +---+---o (18) merge two known; two far left
34 34 | | | |
35 35 | o | | (17) expand
36 36 | |\ \ \
37 37 | | o---+ (16) merge two known; one immediate right, one near right
38 38 | | |/ /
39 39 o | | | (15) expand
40 40 |\ \ \ \
41 41 | o-----+ (14) merge two known; one immediate right, one far right
42 42 | |/ / /
43 43 o | | | (13) expand
44 44 |\ \ \ \
45 45 +---o | | (12) merge two known; one immediate right, one far left
46 46 | | |/ /
47 47 | o | | (11) expand
48 48 | |\ \ \
49 49 | | o---+ (10) merge two known; one immediate left, one near right
50 50 | |/ / /
51 51 o | | | (9) expand
52 52 |\ \ \ \
53 53 | o-----+ (8) merge two known; one immediate left, one far right
54 54 |/ / / /
55 55 o | | | (7) expand
56 56 |\ \ \ \
57 57 +---o | | (6) merge two known; one immediate left, one far left
58 58 | |/ / /
59 59 | o | | (5) expand
60 60 | |\ \ \
61 61 | | o | | (4) merge two known; one immediate left, one immediate right
62 62 | |/|/ /
63 63 | o / / (3) collapse
64 64 |/ / /
65 65 o / / (2) collapse
66 66 |/ /
67 67 o / (1) collapse
68 68 |/
69 69 o (0) root
70 70
71 71
72 72 $ commit()
73 73 > {
74 74 > rev=$1
75 75 > msg=$2
76 76 > shift 2
77 77 > if [ "$#" -gt 0 ]; then
78 78 > hg debugsetparents "$@"
79 79 > fi
80 80 > echo $rev > a
81 81 > hg commit -Aqd "$rev 0" -m "($rev) $msg"
82 82 > }
83 83
84 84 $ cat > printrevset.py <<EOF
85 85 > from __future__ import absolute_import
86 86 > from mercurial import (
87 87 > cmdutil,
88 88 > commands,
89 89 > extensions,
90 90 > logcmdutil,
91 91 > revsetlang,
92 92 > smartset,
93 93 > )
94 94 >
95 95 > def logrevset(repo, pats, opts):
96 96 > revs = logcmdutil._initialrevs(repo, opts)
97 97 > if not revs:
98 98 > return None
99 99 > match, pats, slowpath = logcmdutil._makematcher(repo, revs, pats, opts)
100 100 > return logcmdutil._makerevset(repo, match, pats, slowpath, opts)
101 101 >
102 102 > def uisetup(ui):
103 103 > def printrevset(orig, repo, pats, opts):
104 104 > revs, filematcher = orig(repo, pats, opts)
105 > if opts.get('print_revset'):
105 > if opts.get(b'print_revset'):
106 106 > expr = logrevset(repo, pats, opts)
107 107 > if expr:
108 108 > tree = revsetlang.parse(expr)
109 109 > tree = revsetlang.analyze(tree)
110 110 > else:
111 111 > tree = []
112 112 > ui = repo.ui
113 > ui.write('%r\n' % (opts.get('rev', []),))
114 > ui.write(revsetlang.prettyformat(tree) + '\n')
115 > ui.write(smartset.prettyformat(revs) + '\n')
113 > ui.write(b'%r\n' % (opts.get(b'rev', []),))
114 > ui.write(revsetlang.prettyformat(tree) + b'\n')
115 > ui.write(smartset.prettyformat(revs) + b'\n')
116 116 > revs = smartset.baseset() # display no revisions
117 117 > return revs, filematcher
118 118 > extensions.wrapfunction(logcmdutil, 'getrevs', printrevset)
119 > aliases, entry = cmdutil.findcmd('log', commands.table)
120 > entry[1].append(('', 'print-revset', False,
121 > 'print generated revset and exit (DEPRECATED)'))
119 > aliases, entry = cmdutil.findcmd(b'log', commands.table)
120 > entry[1].append((b'', b'print-revset', False,
121 > b'print generated revset and exit (DEPRECATED)'))
122 122 > EOF
123 123
124 124 $ echo "[extensions]" >> $HGRCPATH
125 125 $ echo "printrevset=`pwd`/printrevset.py" >> $HGRCPATH
126 126
127 127 $ hg init repo
128 128 $ cd repo
129 129
130 130 Empty repo:
131 131
132 132 $ hg log -G
133 133
134 134
135 135 Building DAG:
136 136
137 137 $ commit 0 "root"
138 138 $ commit 1 "collapse" 0
139 139 $ commit 2 "collapse" 1
140 140 $ commit 3 "collapse" 2
141 141 $ commit 4 "merge two known; one immediate left, one immediate right" 1 3
142 142 $ commit 5 "expand" 3 4
143 143 $ commit 6 "merge two known; one immediate left, one far left" 2 5
144 144 $ commit 7 "expand" 2 5
145 145 $ commit 8 "merge two known; one immediate left, one far right" 0 7
146 146 $ commit 9 "expand" 7 8
147 147 $ commit 10 "merge two known; one immediate left, one near right" 0 6
148 148 $ commit 11 "expand" 6 10
149 149 $ commit 12 "merge two known; one immediate right, one far left" 1 9
150 150 $ commit 13 "expand" 9 11
151 151 $ commit 14 "merge two known; one immediate right, one far right" 0 12
152 152 $ commit 15 "expand" 13 14
153 153 $ commit 16 "merge two known; one immediate right, one near right" 0 1
154 154 $ commit 17 "expand" 12 16
155 155 $ commit 18 "merge two known; two far left" 1 15
156 156 $ commit 19 "expand" 15 17
157 157 $ commit 20 "merge two known; two far right" 0 18
158 158 $ commit 21 "expand" 19 20
159 159 $ commit 22 "merge two known; one far left, one far right" 18 21
160 160 $ commit 23 "merge one known; immediate left" 1 22
161 161 $ commit 24 "merge one known; immediate right" 0 23
162 162 $ commit 25 "merge one known; far left" 21 24
163 163 $ commit 26 "merge one known; far right" 18 25
164 164 $ commit 27 "collapse" 21
165 165 $ commit 28 "merge zero known" 1 26
166 166 $ commit 29 "regular commit" 0
167 167 $ commit 30 "expand" 28 29
168 168 $ commit 31 "expand" 21 30
169 169 $ commit 32 "expand" 27 31
170 170 $ commit 33 "head" 18
171 171 $ commit 34 "head" 32
172 172
173 173
174 174 $ hg log -G -q
175 175 @ 34:fea3ac5810e0
176 176 |
177 177 | o 33:68608f5145f9
178 178 | |
179 179 o | 32:d06dffa21a31
180 180 |\ \
181 181 | o \ 31:621d83e11f67
182 182 | |\ \
183 183 | | o \ 30:6e11cd4b648f
184 184 | | |\ \
185 185 | | | o | 29:cd9bb2be7593
186 186 | | | | |
187 187 | | o | | 28:44ecd0b9ae99
188 188 | | |\ \ \
189 189 o | | | | | 27:886ed638191b
190 190 |/ / / / /
191 191 | | o---+ 26:7f25b6c2f0b9
192 192 | | | | |
193 193 +---o | | 25:91da8ed57247
194 194 | | | | |
195 195 | | o | | 24:a9c19a3d96b7
196 196 | | |\| |
197 197 | | o | | 23:a01cddf0766d
198 198 | |/| | |
199 199 +---o---+ 22:e0d9cccacb5d
200 200 | | / /
201 201 o | | | 21:d42a756af44d
202 202 |\ \ \ \
203 203 | o---+-+ 20:d30ed6450e32
204 204 | / / /
205 205 o | | | 19:31ddc2c1573b
206 206 |\ \ \ \
207 207 +---+---o 18:1aa84d96232a
208 208 | | | |
209 209 | o | | 17:44765d7c06e0
210 210 | |\ \ \
211 211 | | o---+ 16:3677d192927d
212 212 | | |/ /
213 213 o | | | 15:1dda3f72782d
214 214 |\ \ \ \
215 215 | o-----+ 14:8eac370358ef
216 216 | |/ / /
217 217 o | | | 13:22d8966a97e3
218 218 |\ \ \ \
219 219 +---o | | 12:86b91144a6e9
220 220 | | |/ /
221 221 | o | | 11:832d76e6bdf2
222 222 | |\ \ \
223 223 | | o---+ 10:74c64d036d72
224 224 | |/ / /
225 225 o | | | 9:7010c0af0a35
226 226 |\ \ \ \
227 227 | o-----+ 8:7a0b11f71937
228 228 |/ / / /
229 229 o | | | 7:b632bb1b1224
230 230 |\ \ \ \
231 231 +---o | | 6:b105a072e251
232 232 | |/ / /
233 233 | o | | 5:4409d547b708
234 234 | |\ \ \
235 235 | | o | | 4:26a8bac39d9f
236 236 | |/|/ /
237 237 | o / / 3:27eef8ed80b4
238 238 |/ / /
239 239 o / / 2:3d9a33b8d1e1
240 240 |/ /
241 241 o / 1:6db2ef61d156
242 242 |/
243 243 o 0:e6eb3150255d
244 244
245 245
246 246 $ hg log -G
247 247 @ changeset: 34:fea3ac5810e0
248 248 | tag: tip
249 249 | parent: 32:d06dffa21a31
250 250 | user: test
251 251 | date: Thu Jan 01 00:00:34 1970 +0000
252 252 | summary: (34) head
253 253 |
254 254 | o changeset: 33:68608f5145f9
255 255 | | parent: 18:1aa84d96232a
256 256 | | user: test
257 257 | | date: Thu Jan 01 00:00:33 1970 +0000
258 258 | | summary: (33) head
259 259 | |
260 260 o | changeset: 32:d06dffa21a31
261 261 |\ \ parent: 27:886ed638191b
262 262 | | | parent: 31:621d83e11f67
263 263 | | | user: test
264 264 | | | date: Thu Jan 01 00:00:32 1970 +0000
265 265 | | | summary: (32) expand
266 266 | | |
267 267 | o | changeset: 31:621d83e11f67
268 268 | |\ \ parent: 21:d42a756af44d
269 269 | | | | parent: 30:6e11cd4b648f
270 270 | | | | user: test
271 271 | | | | date: Thu Jan 01 00:00:31 1970 +0000
272 272 | | | | summary: (31) expand
273 273 | | | |
274 274 | | o | changeset: 30:6e11cd4b648f
275 275 | | |\ \ parent: 28:44ecd0b9ae99
276 276 | | | | | parent: 29:cd9bb2be7593
277 277 | | | | | user: test
278 278 | | | | | date: Thu Jan 01 00:00:30 1970 +0000
279 279 | | | | | summary: (30) expand
280 280 | | | | |
281 281 | | | o | changeset: 29:cd9bb2be7593
282 282 | | | | | parent: 0:e6eb3150255d
283 283 | | | | | user: test
284 284 | | | | | date: Thu Jan 01 00:00:29 1970 +0000
285 285 | | | | | summary: (29) regular commit
286 286 | | | | |
287 287 | | o | | changeset: 28:44ecd0b9ae99
288 288 | | |\ \ \ parent: 1:6db2ef61d156
289 289 | | | | | | parent: 26:7f25b6c2f0b9
290 290 | | | | | | user: test
291 291 | | | | | | date: Thu Jan 01 00:00:28 1970 +0000
292 292 | | | | | | summary: (28) merge zero known
293 293 | | | | | |
294 294 o | | | | | changeset: 27:886ed638191b
295 295 |/ / / / / parent: 21:d42a756af44d
296 296 | | | | | user: test
297 297 | | | | | date: Thu Jan 01 00:00:27 1970 +0000
298 298 | | | | | summary: (27) collapse
299 299 | | | | |
300 300 | | o---+ changeset: 26:7f25b6c2f0b9
301 301 | | | | | parent: 18:1aa84d96232a
302 302 | | | | | parent: 25:91da8ed57247
303 303 | | | | | user: test
304 304 | | | | | date: Thu Jan 01 00:00:26 1970 +0000
305 305 | | | | | summary: (26) merge one known; far right
306 306 | | | | |
307 307 +---o | | changeset: 25:91da8ed57247
308 308 | | | | | parent: 21:d42a756af44d
309 309 | | | | | parent: 24:a9c19a3d96b7
310 310 | | | | | user: test
311 311 | | | | | date: Thu Jan 01 00:00:25 1970 +0000
312 312 | | | | | summary: (25) merge one known; far left
313 313 | | | | |
314 314 | | o | | changeset: 24:a9c19a3d96b7
315 315 | | |\| | parent: 0:e6eb3150255d
316 316 | | | | | parent: 23:a01cddf0766d
317 317 | | | | | user: test
318 318 | | | | | date: Thu Jan 01 00:00:24 1970 +0000
319 319 | | | | | summary: (24) merge one known; immediate right
320 320 | | | | |
321 321 | | o | | changeset: 23:a01cddf0766d
322 322 | |/| | | parent: 1:6db2ef61d156
323 323 | | | | | parent: 22:e0d9cccacb5d
324 324 | | | | | user: test
325 325 | | | | | date: Thu Jan 01 00:00:23 1970 +0000
326 326 | | | | | summary: (23) merge one known; immediate left
327 327 | | | | |
328 328 +---o---+ changeset: 22:e0d9cccacb5d
329 329 | | | | parent: 18:1aa84d96232a
330 330 | | / / parent: 21:d42a756af44d
331 331 | | | | user: test
332 332 | | | | date: Thu Jan 01 00:00:22 1970 +0000
333 333 | | | | summary: (22) merge two known; one far left, one far right
334 334 | | | |
335 335 o | | | changeset: 21:d42a756af44d
336 336 |\ \ \ \ parent: 19:31ddc2c1573b
337 337 | | | | | parent: 20:d30ed6450e32
338 338 | | | | | user: test
339 339 | | | | | date: Thu Jan 01 00:00:21 1970 +0000
340 340 | | | | | summary: (21) expand
341 341 | | | | |
342 342 | o---+-+ changeset: 20:d30ed6450e32
343 343 | | | | parent: 0:e6eb3150255d
344 344 | / / / parent: 18:1aa84d96232a
345 345 | | | | user: test
346 346 | | | | date: Thu Jan 01 00:00:20 1970 +0000
347 347 | | | | summary: (20) merge two known; two far right
348 348 | | | |
349 349 o | | | changeset: 19:31ddc2c1573b
350 350 |\ \ \ \ parent: 15:1dda3f72782d
351 351 | | | | | parent: 17:44765d7c06e0
352 352 | | | | | user: test
353 353 | | | | | date: Thu Jan 01 00:00:19 1970 +0000
354 354 | | | | | summary: (19) expand
355 355 | | | | |
356 356 +---+---o changeset: 18:1aa84d96232a
357 357 | | | | parent: 1:6db2ef61d156
358 358 | | | | parent: 15:1dda3f72782d
359 359 | | | | user: test
360 360 | | | | date: Thu Jan 01 00:00:18 1970 +0000
361 361 | | | | summary: (18) merge two known; two far left
362 362 | | | |
363 363 | o | | changeset: 17:44765d7c06e0
364 364 | |\ \ \ parent: 12:86b91144a6e9
365 365 | | | | | parent: 16:3677d192927d
366 366 | | | | | user: test
367 367 | | | | | date: Thu Jan 01 00:00:17 1970 +0000
368 368 | | | | | summary: (17) expand
369 369 | | | | |
370 370 | | o---+ changeset: 16:3677d192927d
371 371 | | | | | parent: 0:e6eb3150255d
372 372 | | |/ / parent: 1:6db2ef61d156
373 373 | | | | user: test
374 374 | | | | date: Thu Jan 01 00:00:16 1970 +0000
375 375 | | | | summary: (16) merge two known; one immediate right, one near right
376 376 | | | |
377 377 o | | | changeset: 15:1dda3f72782d
378 378 |\ \ \ \ parent: 13:22d8966a97e3
379 379 | | | | | parent: 14:8eac370358ef
380 380 | | | | | user: test
381 381 | | | | | date: Thu Jan 01 00:00:15 1970 +0000
382 382 | | | | | summary: (15) expand
383 383 | | | | |
384 384 | o-----+ changeset: 14:8eac370358ef
385 385 | | | | | parent: 0:e6eb3150255d
386 386 | |/ / / parent: 12:86b91144a6e9
387 387 | | | | user: test
388 388 | | | | date: Thu Jan 01 00:00:14 1970 +0000
389 389 | | | | summary: (14) merge two known; one immediate right, one far right
390 390 | | | |
391 391 o | | | changeset: 13:22d8966a97e3
392 392 |\ \ \ \ parent: 9:7010c0af0a35
393 393 | | | | | parent: 11:832d76e6bdf2
394 394 | | | | | user: test
395 395 | | | | | date: Thu Jan 01 00:00:13 1970 +0000
396 396 | | | | | summary: (13) expand
397 397 | | | | |
398 398 +---o | | changeset: 12:86b91144a6e9
399 399 | | |/ / parent: 1:6db2ef61d156
400 400 | | | | parent: 9:7010c0af0a35
401 401 | | | | user: test
402 402 | | | | date: Thu Jan 01 00:00:12 1970 +0000
403 403 | | | | summary: (12) merge two known; one immediate right, one far left
404 404 | | | |
405 405 | o | | changeset: 11:832d76e6bdf2
406 406 | |\ \ \ parent: 6:b105a072e251
407 407 | | | | | parent: 10:74c64d036d72
408 408 | | | | | user: test
409 409 | | | | | date: Thu Jan 01 00:00:11 1970 +0000
410 410 | | | | | summary: (11) expand
411 411 | | | | |
412 412 | | o---+ changeset: 10:74c64d036d72
413 413 | | | | | parent: 0:e6eb3150255d
414 414 | |/ / / parent: 6:b105a072e251
415 415 | | | | user: test
416 416 | | | | date: Thu Jan 01 00:00:10 1970 +0000
417 417 | | | | summary: (10) merge two known; one immediate left, one near right
418 418 | | | |
419 419 o | | | changeset: 9:7010c0af0a35
420 420 |\ \ \ \ parent: 7:b632bb1b1224
421 421 | | | | | parent: 8:7a0b11f71937
422 422 | | | | | user: test
423 423 | | | | | date: Thu Jan 01 00:00:09 1970 +0000
424 424 | | | | | summary: (9) expand
425 425 | | | | |
426 426 | o-----+ changeset: 8:7a0b11f71937
427 427 | | | | | parent: 0:e6eb3150255d
428 428 |/ / / / parent: 7:b632bb1b1224
429 429 | | | | user: test
430 430 | | | | date: Thu Jan 01 00:00:08 1970 +0000
431 431 | | | | summary: (8) merge two known; one immediate left, one far right
432 432 | | | |
433 433 o | | | changeset: 7:b632bb1b1224
434 434 |\ \ \ \ parent: 2:3d9a33b8d1e1
435 435 | | | | | parent: 5:4409d547b708
436 436 | | | | | user: test
437 437 | | | | | date: Thu Jan 01 00:00:07 1970 +0000
438 438 | | | | | summary: (7) expand
439 439 | | | | |
440 440 +---o | | changeset: 6:b105a072e251
441 441 | |/ / / parent: 2:3d9a33b8d1e1
442 442 | | | | parent: 5:4409d547b708
443 443 | | | | user: test
444 444 | | | | date: Thu Jan 01 00:00:06 1970 +0000
445 445 | | | | summary: (6) merge two known; one immediate left, one far left
446 446 | | | |
447 447 | o | | changeset: 5:4409d547b708
448 448 | |\ \ \ parent: 3:27eef8ed80b4
449 449 | | | | | parent: 4:26a8bac39d9f
450 450 | | | | | user: test
451 451 | | | | | date: Thu Jan 01 00:00:05 1970 +0000
452 452 | | | | | summary: (5) expand
453 453 | | | | |
454 454 | | o | | changeset: 4:26a8bac39d9f
455 455 | |/|/ / parent: 1:6db2ef61d156
456 456 | | | | parent: 3:27eef8ed80b4
457 457 | | | | user: test
458 458 | | | | date: Thu Jan 01 00:00:04 1970 +0000
459 459 | | | | summary: (4) merge two known; one immediate left, one immediate right
460 460 | | | |
461 461 | o | | changeset: 3:27eef8ed80b4
462 462 |/ / / user: test
463 463 | | | date: Thu Jan 01 00:00:03 1970 +0000
464 464 | | | summary: (3) collapse
465 465 | | |
466 466 o | | changeset: 2:3d9a33b8d1e1
467 467 |/ / user: test
468 468 | | date: Thu Jan 01 00:00:02 1970 +0000
469 469 | | summary: (2) collapse
470 470 | |
471 471 o | changeset: 1:6db2ef61d156
472 472 |/ user: test
473 473 | date: Thu Jan 01 00:00:01 1970 +0000
474 474 | summary: (1) collapse
475 475 |
476 476 o changeset: 0:e6eb3150255d
477 477 user: test
478 478 date: Thu Jan 01 00:00:00 1970 +0000
479 479 summary: (0) root
480 480
481 481
482 482 File glog:
483 483 $ hg log -G a
484 484 @ changeset: 34:fea3ac5810e0
485 485 | tag: tip
486 486 | parent: 32:d06dffa21a31
487 487 | user: test
488 488 | date: Thu Jan 01 00:00:34 1970 +0000
489 489 | summary: (34) head
490 490 |
491 491 | o changeset: 33:68608f5145f9
492 492 | | parent: 18:1aa84d96232a
493 493 | | user: test
494 494 | | date: Thu Jan 01 00:00:33 1970 +0000
495 495 | | summary: (33) head
496 496 | |
497 497 o | changeset: 32:d06dffa21a31
498 498 |\ \ parent: 27:886ed638191b
499 499 | | | parent: 31:621d83e11f67
500 500 | | | user: test
501 501 | | | date: Thu Jan 01 00:00:32 1970 +0000
502 502 | | | summary: (32) expand
503 503 | | |
504 504 | o | changeset: 31:621d83e11f67
505 505 | |\ \ parent: 21:d42a756af44d
506 506 | | | | parent: 30:6e11cd4b648f
507 507 | | | | user: test
508 508 | | | | date: Thu Jan 01 00:00:31 1970 +0000
509 509 | | | | summary: (31) expand
510 510 | | | |
511 511 | | o | changeset: 30:6e11cd4b648f
512 512 | | |\ \ parent: 28:44ecd0b9ae99
513 513 | | | | | parent: 29:cd9bb2be7593
514 514 | | | | | user: test
515 515 | | | | | date: Thu Jan 01 00:00:30 1970 +0000
516 516 | | | | | summary: (30) expand
517 517 | | | | |
518 518 | | | o | changeset: 29:cd9bb2be7593
519 519 | | | | | parent: 0:e6eb3150255d
520 520 | | | | | user: test
521 521 | | | | | date: Thu Jan 01 00:00:29 1970 +0000
522 522 | | | | | summary: (29) regular commit
523 523 | | | | |
524 524 | | o | | changeset: 28:44ecd0b9ae99
525 525 | | |\ \ \ parent: 1:6db2ef61d156
526 526 | | | | | | parent: 26:7f25b6c2f0b9
527 527 | | | | | | user: test
528 528 | | | | | | date: Thu Jan 01 00:00:28 1970 +0000
529 529 | | | | | | summary: (28) merge zero known
530 530 | | | | | |
531 531 o | | | | | changeset: 27:886ed638191b
532 532 |/ / / / / parent: 21:d42a756af44d
533 533 | | | | | user: test
534 534 | | | | | date: Thu Jan 01 00:00:27 1970 +0000
535 535 | | | | | summary: (27) collapse
536 536 | | | | |
537 537 | | o---+ changeset: 26:7f25b6c2f0b9
538 538 | | | | | parent: 18:1aa84d96232a
539 539 | | | | | parent: 25:91da8ed57247
540 540 | | | | | user: test
541 541 | | | | | date: Thu Jan 01 00:00:26 1970 +0000
542 542 | | | | | summary: (26) merge one known; far right
543 543 | | | | |
544 544 +---o | | changeset: 25:91da8ed57247
545 545 | | | | | parent: 21:d42a756af44d
546 546 | | | | | parent: 24:a9c19a3d96b7
547 547 | | | | | user: test
548 548 | | | | | date: Thu Jan 01 00:00:25 1970 +0000
549 549 | | | | | summary: (25) merge one known; far left
550 550 | | | | |
551 551 | | o | | changeset: 24:a9c19a3d96b7
552 552 | | |\| | parent: 0:e6eb3150255d
553 553 | | | | | parent: 23:a01cddf0766d
554 554 | | | | | user: test
555 555 | | | | | date: Thu Jan 01 00:00:24 1970 +0000
556 556 | | | | | summary: (24) merge one known; immediate right
557 557 | | | | |
558 558 | | o | | changeset: 23:a01cddf0766d
559 559 | |/| | | parent: 1:6db2ef61d156
560 560 | | | | | parent: 22:e0d9cccacb5d
561 561 | | | | | user: test
562 562 | | | | | date: Thu Jan 01 00:00:23 1970 +0000
563 563 | | | | | summary: (23) merge one known; immediate left
564 564 | | | | |
565 565 +---o---+ changeset: 22:e0d9cccacb5d
566 566 | | | | parent: 18:1aa84d96232a
567 567 | | / / parent: 21:d42a756af44d
568 568 | | | | user: test
569 569 | | | | date: Thu Jan 01 00:00:22 1970 +0000
570 570 | | | | summary: (22) merge two known; one far left, one far right
571 571 | | | |
572 572 o | | | changeset: 21:d42a756af44d
573 573 |\ \ \ \ parent: 19:31ddc2c1573b
574 574 | | | | | parent: 20:d30ed6450e32
575 575 | | | | | user: test
576 576 | | | | | date: Thu Jan 01 00:00:21 1970 +0000
577 577 | | | | | summary: (21) expand
578 578 | | | | |
579 579 | o---+-+ changeset: 20:d30ed6450e32
580 580 | | | | parent: 0:e6eb3150255d
581 581 | / / / parent: 18:1aa84d96232a
582 582 | | | | user: test
583 583 | | | | date: Thu Jan 01 00:00:20 1970 +0000
584 584 | | | | summary: (20) merge two known; two far right
585 585 | | | |
586 586 o | | | changeset: 19:31ddc2c1573b
587 587 |\ \ \ \ parent: 15:1dda3f72782d
588 588 | | | | | parent: 17:44765d7c06e0
589 589 | | | | | user: test
590 590 | | | | | date: Thu Jan 01 00:00:19 1970 +0000
591 591 | | | | | summary: (19) expand
592 592 | | | | |
593 593 +---+---o changeset: 18:1aa84d96232a
594 594 | | | | parent: 1:6db2ef61d156
595 595 | | | | parent: 15:1dda3f72782d
596 596 | | | | user: test
597 597 | | | | date: Thu Jan 01 00:00:18 1970 +0000
598 598 | | | | summary: (18) merge two known; two far left
599 599 | | | |
600 600 | o | | changeset: 17:44765d7c06e0
601 601 | |\ \ \ parent: 12:86b91144a6e9
602 602 | | | | | parent: 16:3677d192927d
603 603 | | | | | user: test
604 604 | | | | | date: Thu Jan 01 00:00:17 1970 +0000
605 605 | | | | | summary: (17) expand
606 606 | | | | |
607 607 | | o---+ changeset: 16:3677d192927d
608 608 | | | | | parent: 0:e6eb3150255d
609 609 | | |/ / parent: 1:6db2ef61d156
610 610 | | | | user: test
611 611 | | | | date: Thu Jan 01 00:00:16 1970 +0000
612 612 | | | | summary: (16) merge two known; one immediate right, one near right
613 613 | | | |
614 614 o | | | changeset: 15:1dda3f72782d
615 615 |\ \ \ \ parent: 13:22d8966a97e3
616 616 | | | | | parent: 14:8eac370358ef
617 617 | | | | | user: test
618 618 | | | | | date: Thu Jan 01 00:00:15 1970 +0000
619 619 | | | | | summary: (15) expand
620 620 | | | | |
621 621 | o-----+ changeset: 14:8eac370358ef
622 622 | | | | | parent: 0:e6eb3150255d
623 623 | |/ / / parent: 12:86b91144a6e9
624 624 | | | | user: test
625 625 | | | | date: Thu Jan 01 00:00:14 1970 +0000
626 626 | | | | summary: (14) merge two known; one immediate right, one far right
627 627 | | | |
628 628 o | | | changeset: 13:22d8966a97e3
629 629 |\ \ \ \ parent: 9:7010c0af0a35
630 630 | | | | | parent: 11:832d76e6bdf2
631 631 | | | | | user: test
632 632 | | | | | date: Thu Jan 01 00:00:13 1970 +0000
633 633 | | | | | summary: (13) expand
634 634 | | | | |
635 635 +---o | | changeset: 12:86b91144a6e9
636 636 | | |/ / parent: 1:6db2ef61d156
637 637 | | | | parent: 9:7010c0af0a35
638 638 | | | | user: test
639 639 | | | | date: Thu Jan 01 00:00:12 1970 +0000
640 640 | | | | summary: (12) merge two known; one immediate right, one far left
641 641 | | | |
642 642 | o | | changeset: 11:832d76e6bdf2
643 643 | |\ \ \ parent: 6:b105a072e251
644 644 | | | | | parent: 10:74c64d036d72
645 645 | | | | | user: test
646 646 | | | | | date: Thu Jan 01 00:00:11 1970 +0000
647 647 | | | | | summary: (11) expand
648 648 | | | | |
649 649 | | o---+ changeset: 10:74c64d036d72
650 650 | | | | | parent: 0:e6eb3150255d
651 651 | |/ / / parent: 6:b105a072e251
652 652 | | | | user: test
653 653 | | | | date: Thu Jan 01 00:00:10 1970 +0000
654 654 | | | | summary: (10) merge two known; one immediate left, one near right
655 655 | | | |
656 656 o | | | changeset: 9:7010c0af0a35
657 657 |\ \ \ \ parent: 7:b632bb1b1224
658 658 | | | | | parent: 8:7a0b11f71937
659 659 | | | | | user: test
660 660 | | | | | date: Thu Jan 01 00:00:09 1970 +0000
661 661 | | | | | summary: (9) expand
662 662 | | | | |
663 663 | o-----+ changeset: 8:7a0b11f71937
664 664 | | | | | parent: 0:e6eb3150255d
665 665 |/ / / / parent: 7:b632bb1b1224
666 666 | | | | user: test
667 667 | | | | date: Thu Jan 01 00:00:08 1970 +0000
668 668 | | | | summary: (8) merge two known; one immediate left, one far right
669 669 | | | |
670 670 o | | | changeset: 7:b632bb1b1224
671 671 |\ \ \ \ parent: 2:3d9a33b8d1e1
672 672 | | | | | parent: 5:4409d547b708
673 673 | | | | | user: test
674 674 | | | | | date: Thu Jan 01 00:00:07 1970 +0000
675 675 | | | | | summary: (7) expand
676 676 | | | | |
677 677 +---o | | changeset: 6:b105a072e251
678 678 | |/ / / parent: 2:3d9a33b8d1e1
679 679 | | | | parent: 5:4409d547b708
680 680 | | | | user: test
681 681 | | | | date: Thu Jan 01 00:00:06 1970 +0000
682 682 | | | | summary: (6) merge two known; one immediate left, one far left
683 683 | | | |
684 684 | o | | changeset: 5:4409d547b708
685 685 | |\ \ \ parent: 3:27eef8ed80b4
686 686 | | | | | parent: 4:26a8bac39d9f
687 687 | | | | | user: test
688 688 | | | | | date: Thu Jan 01 00:00:05 1970 +0000
689 689 | | | | | summary: (5) expand
690 690 | | | | |
691 691 | | o | | changeset: 4:26a8bac39d9f
692 692 | |/|/ / parent: 1:6db2ef61d156
693 693 | | | | parent: 3:27eef8ed80b4
694 694 | | | | user: test
695 695 | | | | date: Thu Jan 01 00:00:04 1970 +0000
696 696 | | | | summary: (4) merge two known; one immediate left, one immediate right
697 697 | | | |
698 698 | o | | changeset: 3:27eef8ed80b4
699 699 |/ / / user: test
700 700 | | | date: Thu Jan 01 00:00:03 1970 +0000
701 701 | | | summary: (3) collapse
702 702 | | |
703 703 o | | changeset: 2:3d9a33b8d1e1
704 704 |/ / user: test
705 705 | | date: Thu Jan 01 00:00:02 1970 +0000
706 706 | | summary: (2) collapse
707 707 | |
708 708 o | changeset: 1:6db2ef61d156
709 709 |/ user: test
710 710 | date: Thu Jan 01 00:00:01 1970 +0000
711 711 | summary: (1) collapse
712 712 |
713 713 o changeset: 0:e6eb3150255d
714 714 user: test
715 715 date: Thu Jan 01 00:00:00 1970 +0000
716 716 summary: (0) root
717 717
718 718
719 719 File glog per revset:
720 720
721 721 $ hg log -G -r 'file("a")'
722 722 @ changeset: 34:fea3ac5810e0
723 723 | tag: tip
724 724 | parent: 32:d06dffa21a31
725 725 | user: test
726 726 | date: Thu Jan 01 00:00:34 1970 +0000
727 727 | summary: (34) head
728 728 |
729 729 | o changeset: 33:68608f5145f9
730 730 | | parent: 18:1aa84d96232a
731 731 | | user: test
732 732 | | date: Thu Jan 01 00:00:33 1970 +0000
733 733 | | summary: (33) head
734 734 | |
735 735 o | changeset: 32:d06dffa21a31
736 736 |\ \ parent: 27:886ed638191b
737 737 | | | parent: 31:621d83e11f67
738 738 | | | user: test
739 739 | | | date: Thu Jan 01 00:00:32 1970 +0000
740 740 | | | summary: (32) expand
741 741 | | |
742 742 | o | changeset: 31:621d83e11f67
743 743 | |\ \ parent: 21:d42a756af44d
744 744 | | | | parent: 30:6e11cd4b648f
745 745 | | | | user: test
746 746 | | | | date: Thu Jan 01 00:00:31 1970 +0000
747 747 | | | | summary: (31) expand
748 748 | | | |
749 749 | | o | changeset: 30:6e11cd4b648f
750 750 | | |\ \ parent: 28:44ecd0b9ae99
751 751 | | | | | parent: 29:cd9bb2be7593
752 752 | | | | | user: test
753 753 | | | | | date: Thu Jan 01 00:00:30 1970 +0000
754 754 | | | | | summary: (30) expand
755 755 | | | | |
756 756 | | | o | changeset: 29:cd9bb2be7593
757 757 | | | | | parent: 0:e6eb3150255d
758 758 | | | | | user: test
759 759 | | | | | date: Thu Jan 01 00:00:29 1970 +0000
760 760 | | | | | summary: (29) regular commit
761 761 | | | | |
762 762 | | o | | changeset: 28:44ecd0b9ae99
763 763 | | |\ \ \ parent: 1:6db2ef61d156
764 764 | | | | | | parent: 26:7f25b6c2f0b9
765 765 | | | | | | user: test
766 766 | | | | | | date: Thu Jan 01 00:00:28 1970 +0000
767 767 | | | | | | summary: (28) merge zero known
768 768 | | | | | |
769 769 o | | | | | changeset: 27:886ed638191b
770 770 |/ / / / / parent: 21:d42a756af44d
771 771 | | | | | user: test
772 772 | | | | | date: Thu Jan 01 00:00:27 1970 +0000
773 773 | | | | | summary: (27) collapse
774 774 | | | | |
775 775 | | o---+ changeset: 26:7f25b6c2f0b9
776 776 | | | | | parent: 18:1aa84d96232a
777 777 | | | | | parent: 25:91da8ed57247
778 778 | | | | | user: test
779 779 | | | | | date: Thu Jan 01 00:00:26 1970 +0000
780 780 | | | | | summary: (26) merge one known; far right
781 781 | | | | |
782 782 +---o | | changeset: 25:91da8ed57247
783 783 | | | | | parent: 21:d42a756af44d
784 784 | | | | | parent: 24:a9c19a3d96b7
785 785 | | | | | user: test
786 786 | | | | | date: Thu Jan 01 00:00:25 1970 +0000
787 787 | | | | | summary: (25) merge one known; far left
788 788 | | | | |
789 789 | | o | | changeset: 24:a9c19a3d96b7
790 790 | | |\| | parent: 0:e6eb3150255d
791 791 | | | | | parent: 23:a01cddf0766d
792 792 | | | | | user: test
793 793 | | | | | date: Thu Jan 01 00:00:24 1970 +0000
794 794 | | | | | summary: (24) merge one known; immediate right
795 795 | | | | |
796 796 | | o | | changeset: 23:a01cddf0766d
797 797 | |/| | | parent: 1:6db2ef61d156
798 798 | | | | | parent: 22:e0d9cccacb5d
799 799 | | | | | user: test
800 800 | | | | | date: Thu Jan 01 00:00:23 1970 +0000
801 801 | | | | | summary: (23) merge one known; immediate left
802 802 | | | | |
803 803 +---o---+ changeset: 22:e0d9cccacb5d
804 804 | | | | parent: 18:1aa84d96232a
805 805 | | / / parent: 21:d42a756af44d
806 806 | | | | user: test
807 807 | | | | date: Thu Jan 01 00:00:22 1970 +0000
808 808 | | | | summary: (22) merge two known; one far left, one far right
809 809 | | | |
810 810 o | | | changeset: 21:d42a756af44d
811 811 |\ \ \ \ parent: 19:31ddc2c1573b
812 812 | | | | | parent: 20:d30ed6450e32
813 813 | | | | | user: test
814 814 | | | | | date: Thu Jan 01 00:00:21 1970 +0000
815 815 | | | | | summary: (21) expand
816 816 | | | | |
817 817 | o---+-+ changeset: 20:d30ed6450e32
818 818 | | | | parent: 0:e6eb3150255d
819 819 | / / / parent: 18:1aa84d96232a
820 820 | | | | user: test
821 821 | | | | date: Thu Jan 01 00:00:20 1970 +0000
822 822 | | | | summary: (20) merge two known; two far right
823 823 | | | |
824 824 o | | | changeset: 19:31ddc2c1573b
825 825 |\ \ \ \ parent: 15:1dda3f72782d
826 826 | | | | | parent: 17:44765d7c06e0
827 827 | | | | | user: test
828 828 | | | | | date: Thu Jan 01 00:00:19 1970 +0000
829 829 | | | | | summary: (19) expand
830 830 | | | | |
831 831 +---+---o changeset: 18:1aa84d96232a
832 832 | | | | parent: 1:6db2ef61d156
833 833 | | | | parent: 15:1dda3f72782d
834 834 | | | | user: test
835 835 | | | | date: Thu Jan 01 00:00:18 1970 +0000
836 836 | | | | summary: (18) merge two known; two far left
837 837 | | | |
838 838 | o | | changeset: 17:44765d7c06e0
839 839 | |\ \ \ parent: 12:86b91144a6e9
840 840 | | | | | parent: 16:3677d192927d
841 841 | | | | | user: test
842 842 | | | | | date: Thu Jan 01 00:00:17 1970 +0000
843 843 | | | | | summary: (17) expand
844 844 | | | | |
845 845 | | o---+ changeset: 16:3677d192927d
846 846 | | | | | parent: 0:e6eb3150255d
847 847 | | |/ / parent: 1:6db2ef61d156
848 848 | | | | user: test
849 849 | | | | date: Thu Jan 01 00:00:16 1970 +0000
850 850 | | | | summary: (16) merge two known; one immediate right, one near right
851 851 | | | |
852 852 o | | | changeset: 15:1dda3f72782d
853 853 |\ \ \ \ parent: 13:22d8966a97e3
854 854 | | | | | parent: 14:8eac370358ef
855 855 | | | | | user: test
856 856 | | | | | date: Thu Jan 01 00:00:15 1970 +0000
857 857 | | | | | summary: (15) expand
858 858 | | | | |
859 859 | o-----+ changeset: 14:8eac370358ef
860 860 | | | | | parent: 0:e6eb3150255d
861 861 | |/ / / parent: 12:86b91144a6e9
862 862 | | | | user: test
863 863 | | | | date: Thu Jan 01 00:00:14 1970 +0000
864 864 | | | | summary: (14) merge two known; one immediate right, one far right
865 865 | | | |
866 866 o | | | changeset: 13:22d8966a97e3
867 867 |\ \ \ \ parent: 9:7010c0af0a35
868 868 | | | | | parent: 11:832d76e6bdf2
869 869 | | | | | user: test
870 870 | | | | | date: Thu Jan 01 00:00:13 1970 +0000
871 871 | | | | | summary: (13) expand
872 872 | | | | |
873 873 +---o | | changeset: 12:86b91144a6e9
874 874 | | |/ / parent: 1:6db2ef61d156
875 875 | | | | parent: 9:7010c0af0a35
876 876 | | | | user: test
877 877 | | | | date: Thu Jan 01 00:00:12 1970 +0000
878 878 | | | | summary: (12) merge two known; one immediate right, one far left
879 879 | | | |
880 880 | o | | changeset: 11:832d76e6bdf2
881 881 | |\ \ \ parent: 6:b105a072e251
882 882 | | | | | parent: 10:74c64d036d72
883 883 | | | | | user: test
884 884 | | | | | date: Thu Jan 01 00:00:11 1970 +0000
885 885 | | | | | summary: (11) expand
886 886 | | | | |
887 887 | | o---+ changeset: 10:74c64d036d72
888 888 | | | | | parent: 0:e6eb3150255d
889 889 | |/ / / parent: 6:b105a072e251
890 890 | | | | user: test
891 891 | | | | date: Thu Jan 01 00:00:10 1970 +0000
892 892 | | | | summary: (10) merge two known; one immediate left, one near right
893 893 | | | |
894 894 o | | | changeset: 9:7010c0af0a35
895 895 |\ \ \ \ parent: 7:b632bb1b1224
896 896 | | | | | parent: 8:7a0b11f71937
897 897 | | | | | user: test
898 898 | | | | | date: Thu Jan 01 00:00:09 1970 +0000
899 899 | | | | | summary: (9) expand
900 900 | | | | |
901 901 | o-----+ changeset: 8:7a0b11f71937
902 902 | | | | | parent: 0:e6eb3150255d
903 903 |/ / / / parent: 7:b632bb1b1224
904 904 | | | | user: test
905 905 | | | | date: Thu Jan 01 00:00:08 1970 +0000
906 906 | | | | summary: (8) merge two known; one immediate left, one far right
907 907 | | | |
908 908 o | | | changeset: 7:b632bb1b1224
909 909 |\ \ \ \ parent: 2:3d9a33b8d1e1
910 910 | | | | | parent: 5:4409d547b708
911 911 | | | | | user: test
912 912 | | | | | date: Thu Jan 01 00:00:07 1970 +0000
913 913 | | | | | summary: (7) expand
914 914 | | | | |
915 915 +---o | | changeset: 6:b105a072e251
916 916 | |/ / / parent: 2:3d9a33b8d1e1
917 917 | | | | parent: 5:4409d547b708
918 918 | | | | user: test
919 919 | | | | date: Thu Jan 01 00:00:06 1970 +0000
920 920 | | | | summary: (6) merge two known; one immediate left, one far left
921 921 | | | |
922 922 | o | | changeset: 5:4409d547b708
923 923 | |\ \ \ parent: 3:27eef8ed80b4
924 924 | | | | | parent: 4:26a8bac39d9f
925 925 | | | | | user: test
926 926 | | | | | date: Thu Jan 01 00:00:05 1970 +0000
927 927 | | | | | summary: (5) expand
928 928 | | | | |
929 929 | | o | | changeset: 4:26a8bac39d9f
930 930 | |/|/ / parent: 1:6db2ef61d156
931 931 | | | | parent: 3:27eef8ed80b4
932 932 | | | | user: test
933 933 | | | | date: Thu Jan 01 00:00:04 1970 +0000
934 934 | | | | summary: (4) merge two known; one immediate left, one immediate right
935 935 | | | |
936 936 | o | | changeset: 3:27eef8ed80b4
937 937 |/ / / user: test
938 938 | | | date: Thu Jan 01 00:00:03 1970 +0000
939 939 | | | summary: (3) collapse
940 940 | | |
941 941 o | | changeset: 2:3d9a33b8d1e1
942 942 |/ / user: test
943 943 | | date: Thu Jan 01 00:00:02 1970 +0000
944 944 | | summary: (2) collapse
945 945 | |
946 946 o | changeset: 1:6db2ef61d156
947 947 |/ user: test
948 948 | date: Thu Jan 01 00:00:01 1970 +0000
949 949 | summary: (1) collapse
950 950 |
951 951 o changeset: 0:e6eb3150255d
952 952 user: test
953 953 date: Thu Jan 01 00:00:00 1970 +0000
954 954 summary: (0) root
955 955
956 956
957 957
958 958 File glog per revset (only merges):
959 959
960 960 $ hg log -G -r 'file("a")' -m
961 961 o changeset: 32:d06dffa21a31
962 962 |\ parent: 27:886ed638191b
963 963 | : parent: 31:621d83e11f67
964 964 | : user: test
965 965 | : date: Thu Jan 01 00:00:32 1970 +0000
966 966 | : summary: (32) expand
967 967 | :
968 968 o : changeset: 31:621d83e11f67
969 969 |\: parent: 21:d42a756af44d
970 970 | : parent: 30:6e11cd4b648f
971 971 | : user: test
972 972 | : date: Thu Jan 01 00:00:31 1970 +0000
973 973 | : summary: (31) expand
974 974 | :
975 975 o : changeset: 30:6e11cd4b648f
976 976 |\ \ parent: 28:44ecd0b9ae99
977 977 | ~ : parent: 29:cd9bb2be7593
978 978 | : user: test
979 979 | : date: Thu Jan 01 00:00:30 1970 +0000
980 980 | : summary: (30) expand
981 981 | /
982 982 o : changeset: 28:44ecd0b9ae99
983 983 |\ \ parent: 1:6db2ef61d156
984 984 | ~ : parent: 26:7f25b6c2f0b9
985 985 | : user: test
986 986 | : date: Thu Jan 01 00:00:28 1970 +0000
987 987 | : summary: (28) merge zero known
988 988 | /
989 989 o : changeset: 26:7f25b6c2f0b9
990 990 |\ \ parent: 18:1aa84d96232a
991 991 | | : parent: 25:91da8ed57247
992 992 | | : user: test
993 993 | | : date: Thu Jan 01 00:00:26 1970 +0000
994 994 | | : summary: (26) merge one known; far right
995 995 | | :
996 996 | o : changeset: 25:91da8ed57247
997 997 | |\: parent: 21:d42a756af44d
998 998 | | : parent: 24:a9c19a3d96b7
999 999 | | : user: test
1000 1000 | | : date: Thu Jan 01 00:00:25 1970 +0000
1001 1001 | | : summary: (25) merge one known; far left
1002 1002 | | :
1003 1003 | o : changeset: 24:a9c19a3d96b7
1004 1004 | |\ \ parent: 0:e6eb3150255d
1005 1005 | | ~ : parent: 23:a01cddf0766d
1006 1006 | | : user: test
1007 1007 | | : date: Thu Jan 01 00:00:24 1970 +0000
1008 1008 | | : summary: (24) merge one known; immediate right
1009 1009 | | /
1010 1010 | o : changeset: 23:a01cddf0766d
1011 1011 | |\ \ parent: 1:6db2ef61d156
1012 1012 | | ~ : parent: 22:e0d9cccacb5d
1013 1013 | | : user: test
1014 1014 | | : date: Thu Jan 01 00:00:23 1970 +0000
1015 1015 | | : summary: (23) merge one known; immediate left
1016 1016 | | /
1017 1017 | o : changeset: 22:e0d9cccacb5d
1018 1018 |/:/ parent: 18:1aa84d96232a
1019 1019 | : parent: 21:d42a756af44d
1020 1020 | : user: test
1021 1021 | : date: Thu Jan 01 00:00:22 1970 +0000
1022 1022 | : summary: (22) merge two known; one far left, one far right
1023 1023 | :
1024 1024 | o changeset: 21:d42a756af44d
1025 1025 | |\ parent: 19:31ddc2c1573b
1026 1026 | | | parent: 20:d30ed6450e32
1027 1027 | | | user: test
1028 1028 | | | date: Thu Jan 01 00:00:21 1970 +0000
1029 1029 | | | summary: (21) expand
1030 1030 | | |
1031 1031 +---o changeset: 20:d30ed6450e32
1032 1032 | | | parent: 0:e6eb3150255d
1033 1033 | | ~ parent: 18:1aa84d96232a
1034 1034 | | user: test
1035 1035 | | date: Thu Jan 01 00:00:20 1970 +0000
1036 1036 | | summary: (20) merge two known; two far right
1037 1037 | |
1038 1038 | o changeset: 19:31ddc2c1573b
1039 1039 | |\ parent: 15:1dda3f72782d
1040 1040 | | | parent: 17:44765d7c06e0
1041 1041 | | | user: test
1042 1042 | | | date: Thu Jan 01 00:00:19 1970 +0000
1043 1043 | | | summary: (19) expand
1044 1044 | | |
1045 1045 o | | changeset: 18:1aa84d96232a
1046 1046 |\| | parent: 1:6db2ef61d156
1047 1047 ~ | | parent: 15:1dda3f72782d
1048 1048 | | user: test
1049 1049 | | date: Thu Jan 01 00:00:18 1970 +0000
1050 1050 | | summary: (18) merge two known; two far left
1051 1051 / /
1052 1052 | o changeset: 17:44765d7c06e0
1053 1053 | |\ parent: 12:86b91144a6e9
1054 1054 | | | parent: 16:3677d192927d
1055 1055 | | | user: test
1056 1056 | | | date: Thu Jan 01 00:00:17 1970 +0000
1057 1057 | | | summary: (17) expand
1058 1058 | | |
1059 1059 | | o changeset: 16:3677d192927d
1060 1060 | | |\ parent: 0:e6eb3150255d
1061 1061 | | ~ ~ parent: 1:6db2ef61d156
1062 1062 | | user: test
1063 1063 | | date: Thu Jan 01 00:00:16 1970 +0000
1064 1064 | | summary: (16) merge two known; one immediate right, one near right
1065 1065 | |
1066 1066 o | changeset: 15:1dda3f72782d
1067 1067 |\ \ parent: 13:22d8966a97e3
1068 1068 | | | parent: 14:8eac370358ef
1069 1069 | | | user: test
1070 1070 | | | date: Thu Jan 01 00:00:15 1970 +0000
1071 1071 | | | summary: (15) expand
1072 1072 | | |
1073 1073 | o | changeset: 14:8eac370358ef
1074 1074 | |\| parent: 0:e6eb3150255d
1075 1075 | ~ | parent: 12:86b91144a6e9
1076 1076 | | user: test
1077 1077 | | date: Thu Jan 01 00:00:14 1970 +0000
1078 1078 | | summary: (14) merge two known; one immediate right, one far right
1079 1079 | /
1080 1080 o | changeset: 13:22d8966a97e3
1081 1081 |\ \ parent: 9:7010c0af0a35
1082 1082 | | | parent: 11:832d76e6bdf2
1083 1083 | | | user: test
1084 1084 | | | date: Thu Jan 01 00:00:13 1970 +0000
1085 1085 | | | summary: (13) expand
1086 1086 | | |
1087 1087 +---o changeset: 12:86b91144a6e9
1088 1088 | | | parent: 1:6db2ef61d156
1089 1089 | | ~ parent: 9:7010c0af0a35
1090 1090 | | user: test
1091 1091 | | date: Thu Jan 01 00:00:12 1970 +0000
1092 1092 | | summary: (12) merge two known; one immediate right, one far left
1093 1093 | |
1094 1094 | o changeset: 11:832d76e6bdf2
1095 1095 | |\ parent: 6:b105a072e251
1096 1096 | | | parent: 10:74c64d036d72
1097 1097 | | | user: test
1098 1098 | | | date: Thu Jan 01 00:00:11 1970 +0000
1099 1099 | | | summary: (11) expand
1100 1100 | | |
1101 1101 | | o changeset: 10:74c64d036d72
1102 1102 | |/| parent: 0:e6eb3150255d
1103 1103 | | ~ parent: 6:b105a072e251
1104 1104 | | user: test
1105 1105 | | date: Thu Jan 01 00:00:10 1970 +0000
1106 1106 | | summary: (10) merge two known; one immediate left, one near right
1107 1107 | |
1108 1108 o | changeset: 9:7010c0af0a35
1109 1109 |\ \ parent: 7:b632bb1b1224
1110 1110 | | | parent: 8:7a0b11f71937
1111 1111 | | | user: test
1112 1112 | | | date: Thu Jan 01 00:00:09 1970 +0000
1113 1113 | | | summary: (9) expand
1114 1114 | | |
1115 1115 | o | changeset: 8:7a0b11f71937
1116 1116 |/| | parent: 0:e6eb3150255d
1117 1117 | ~ | parent: 7:b632bb1b1224
1118 1118 | | user: test
1119 1119 | | date: Thu Jan 01 00:00:08 1970 +0000
1120 1120 | | summary: (8) merge two known; one immediate left, one far right
1121 1121 | /
1122 1122 o | changeset: 7:b632bb1b1224
1123 1123 |\ \ parent: 2:3d9a33b8d1e1
1124 1124 | ~ | parent: 5:4409d547b708
1125 1125 | | user: test
1126 1126 | | date: Thu Jan 01 00:00:07 1970 +0000
1127 1127 | | summary: (7) expand
1128 1128 | /
1129 1129 | o changeset: 6:b105a072e251
1130 1130 |/| parent: 2:3d9a33b8d1e1
1131 1131 | ~ parent: 5:4409d547b708
1132 1132 | user: test
1133 1133 | date: Thu Jan 01 00:00:06 1970 +0000
1134 1134 | summary: (6) merge two known; one immediate left, one far left
1135 1135 |
1136 1136 o changeset: 5:4409d547b708
1137 1137 |\ parent: 3:27eef8ed80b4
1138 1138 | ~ parent: 4:26a8bac39d9f
1139 1139 | user: test
1140 1140 | date: Thu Jan 01 00:00:05 1970 +0000
1141 1141 | summary: (5) expand
1142 1142 |
1143 1143 o changeset: 4:26a8bac39d9f
1144 1144 |\ parent: 1:6db2ef61d156
1145 1145 ~ ~ parent: 3:27eef8ed80b4
1146 1146 user: test
1147 1147 date: Thu Jan 01 00:00:04 1970 +0000
1148 1148 summary: (4) merge two known; one immediate left, one immediate right
1149 1149
1150 1150
1151 1151
1152 1152 Empty revision range - display nothing:
1153 1153 $ hg log -G -r 1..0
1154 1154
1155 1155 $ cd ..
1156 1156
1157 1157 #if no-outer-repo
1158 1158
1159 1159 From outer space:
1160 1160 $ hg log -G -l1 repo
1161 1161 @ changeset: 34:fea3ac5810e0
1162 1162 | tag: tip
1163 1163 ~ parent: 32:d06dffa21a31
1164 1164 user: test
1165 1165 date: Thu Jan 01 00:00:34 1970 +0000
1166 1166 summary: (34) head
1167 1167
1168 1168 $ hg log -G -l1 repo/a
1169 1169 @ changeset: 34:fea3ac5810e0
1170 1170 | tag: tip
1171 1171 ~ parent: 32:d06dffa21a31
1172 1172 user: test
1173 1173 date: Thu Jan 01 00:00:34 1970 +0000
1174 1174 summary: (34) head
1175 1175
1176 1176 $ hg log -G -l1 repo/missing
1177 1177
1178 1178 #endif
1179 1179
1180 1180 File log with revs != cset revs:
1181 1181 $ hg init flog
1182 1182 $ cd flog
1183 1183 $ echo one >one
1184 1184 $ hg add one
1185 1185 $ hg commit -mone
1186 1186 $ echo two >two
1187 1187 $ hg add two
1188 1188 $ hg commit -mtwo
1189 1189 $ echo more >two
1190 1190 $ hg commit -mmore
1191 1191 $ hg log -G two
1192 1192 @ changeset: 2:12c28321755b
1193 1193 | tag: tip
1194 1194 | user: test
1195 1195 | date: Thu Jan 01 00:00:00 1970 +0000
1196 1196 | summary: more
1197 1197 |
1198 1198 o changeset: 1:5ac72c0599bf
1199 1199 | user: test
1200 1200 ~ date: Thu Jan 01 00:00:00 1970 +0000
1201 1201 summary: two
1202 1202
1203 1203
1204 1204 Issue1896: File log with explicit style
1205 1205 $ hg log -G --style=default one
1206 1206 o changeset: 0:3d578b4a1f53
1207 1207 user: test
1208 1208 date: Thu Jan 01 00:00:00 1970 +0000
1209 1209 summary: one
1210 1210
1211 1211 Issue2395: glog --style header and footer
1212 1212 $ hg log -G --style=xml one
1213 1213 <?xml version="1.0"?>
1214 1214 <log>
1215 1215 o <logentry revision="0" node="3d578b4a1f537d5fcf7301bfa9c0b97adfaa6fb1">
1216 1216 <author email="test">test</author>
1217 1217 <date>1970-01-01T00:00:00+00:00</date>
1218 1218 <msg xml:space="preserve">one</msg>
1219 1219 </logentry>
1220 1220 </log>
1221 1221
1222 1222 $ cd ..
1223 1223
1224 1224 Incoming and outgoing:
1225 1225
1226 1226 $ hg clone -U -r31 repo repo2
1227 1227 adding changesets
1228 1228 adding manifests
1229 1229 adding file changes
1230 1230 added 31 changesets with 31 changes to 1 files
1231 1231 new changesets e6eb3150255d:621d83e11f67
1232 1232 $ cd repo2
1233 1233
1234 1234 $ hg incoming --graph ../repo
1235 1235 comparing with ../repo
1236 1236 searching for changes
1237 1237 o changeset: 34:fea3ac5810e0
1238 1238 | tag: tip
1239 1239 | parent: 32:d06dffa21a31
1240 1240 | user: test
1241 1241 | date: Thu Jan 01 00:00:34 1970 +0000
1242 1242 | summary: (34) head
1243 1243 |
1244 1244 | o changeset: 33:68608f5145f9
1245 1245 | parent: 18:1aa84d96232a
1246 1246 | user: test
1247 1247 | date: Thu Jan 01 00:00:33 1970 +0000
1248 1248 | summary: (33) head
1249 1249 |
1250 1250 o changeset: 32:d06dffa21a31
1251 1251 | parent: 27:886ed638191b
1252 1252 | parent: 31:621d83e11f67
1253 1253 | user: test
1254 1254 | date: Thu Jan 01 00:00:32 1970 +0000
1255 1255 | summary: (32) expand
1256 1256 |
1257 1257 o changeset: 27:886ed638191b
1258 1258 parent: 21:d42a756af44d
1259 1259 user: test
1260 1260 date: Thu Jan 01 00:00:27 1970 +0000
1261 1261 summary: (27) collapse
1262 1262
1263 1263 $ cd ..
1264 1264
1265 1265 $ hg -R repo outgoing --graph repo2
1266 1266 comparing with repo2
1267 1267 searching for changes
1268 1268 @ changeset: 34:fea3ac5810e0
1269 1269 | tag: tip
1270 1270 | parent: 32:d06dffa21a31
1271 1271 | user: test
1272 1272 | date: Thu Jan 01 00:00:34 1970 +0000
1273 1273 | summary: (34) head
1274 1274 |
1275 1275 | o changeset: 33:68608f5145f9
1276 1276 | parent: 18:1aa84d96232a
1277 1277 | user: test
1278 1278 | date: Thu Jan 01 00:00:33 1970 +0000
1279 1279 | summary: (33) head
1280 1280 |
1281 1281 o changeset: 32:d06dffa21a31
1282 1282 | parent: 27:886ed638191b
1283 1283 | parent: 31:621d83e11f67
1284 1284 | user: test
1285 1285 | date: Thu Jan 01 00:00:32 1970 +0000
1286 1286 | summary: (32) expand
1287 1287 |
1288 1288 o changeset: 27:886ed638191b
1289 1289 parent: 21:d42a756af44d
1290 1290 user: test
1291 1291 date: Thu Jan 01 00:00:27 1970 +0000
1292 1292 summary: (27) collapse
1293 1293
1294 1294
1295 1295 File + limit with revs != cset revs:
1296 1296 $ cd repo
1297 1297 $ touch b
1298 1298 $ hg ci -Aqm0
1299 1299 $ hg log -G -l2 a
1300 1300 o changeset: 34:fea3ac5810e0
1301 1301 | parent: 32:d06dffa21a31
1302 1302 ~ user: test
1303 1303 date: Thu Jan 01 00:00:34 1970 +0000
1304 1304 summary: (34) head
1305 1305
1306 1306 o changeset: 33:68608f5145f9
1307 1307 | parent: 18:1aa84d96232a
1308 1308 ~ user: test
1309 1309 date: Thu Jan 01 00:00:33 1970 +0000
1310 1310 summary: (33) head
1311 1311
1312 1312
1313 1313 File + limit + -ra:b, (b - a) < limit:
1314 1314 $ hg log -G -l3000 -r32:tip a
1315 1315 o changeset: 34:fea3ac5810e0
1316 1316 | parent: 32:d06dffa21a31
1317 1317 | user: test
1318 1318 | date: Thu Jan 01 00:00:34 1970 +0000
1319 1319 | summary: (34) head
1320 1320 |
1321 1321 | o changeset: 33:68608f5145f9
1322 1322 | | parent: 18:1aa84d96232a
1323 1323 | ~ user: test
1324 1324 | date: Thu Jan 01 00:00:33 1970 +0000
1325 1325 | summary: (33) head
1326 1326 |
1327 1327 o changeset: 32:d06dffa21a31
1328 1328 |\ parent: 27:886ed638191b
1329 1329 ~ ~ parent: 31:621d83e11f67
1330 1330 user: test
1331 1331 date: Thu Jan 01 00:00:32 1970 +0000
1332 1332 summary: (32) expand
1333 1333
1334 1334
1335 1335 Point out a common and an uncommon unshown parent
1336 1336
1337 1337 $ hg log -G -r 'rev(8) or rev(9)'
1338 1338 o changeset: 9:7010c0af0a35
1339 1339 |\ parent: 7:b632bb1b1224
1340 1340 | ~ parent: 8:7a0b11f71937
1341 1341 | user: test
1342 1342 | date: Thu Jan 01 00:00:09 1970 +0000
1343 1343 | summary: (9) expand
1344 1344 |
1345 1345 o changeset: 8:7a0b11f71937
1346 1346 |\ parent: 0:e6eb3150255d
1347 1347 ~ ~ parent: 7:b632bb1b1224
1348 1348 user: test
1349 1349 date: Thu Jan 01 00:00:08 1970 +0000
1350 1350 summary: (8) merge two known; one immediate left, one far right
1351 1351
1352 1352
1353 1353 File + limit + -ra:b, b < tip:
1354 1354
1355 1355 $ hg log -G -l1 -r32:34 a
1356 1356 o changeset: 34:fea3ac5810e0
1357 1357 | parent: 32:d06dffa21a31
1358 1358 ~ user: test
1359 1359 date: Thu Jan 01 00:00:34 1970 +0000
1360 1360 summary: (34) head
1361 1361
1362 1362
1363 1363 file(File) + limit + -ra:b, b < tip:
1364 1364
1365 1365 $ hg log -G -l1 -r32:34 -r 'file("a")'
1366 1366 o changeset: 34:fea3ac5810e0
1367 1367 | parent: 32:d06dffa21a31
1368 1368 ~ user: test
1369 1369 date: Thu Jan 01 00:00:34 1970 +0000
1370 1370 summary: (34) head
1371 1371
1372 1372
1373 1373 limit(file(File) and a::b), b < tip:
1374 1374
1375 1375 $ hg log -G -r 'limit(file("a") and 32::34, 1)'
1376 1376 o changeset: 32:d06dffa21a31
1377 1377 |\ parent: 27:886ed638191b
1378 1378 ~ ~ parent: 31:621d83e11f67
1379 1379 user: test
1380 1380 date: Thu Jan 01 00:00:32 1970 +0000
1381 1381 summary: (32) expand
1382 1382
1383 1383
1384 1384 File + limit + -ra:b, b < tip:
1385 1385
1386 1386 $ hg log -G -r 'limit(file("a") and 34::32, 1)'
1387 1387
1388 1388 File + limit + -ra:b, b < tip, (b - a) < limit:
1389 1389
1390 1390 $ hg log -G -l10 -r33:34 a
1391 1391 o changeset: 34:fea3ac5810e0
1392 1392 | parent: 32:d06dffa21a31
1393 1393 ~ user: test
1394 1394 date: Thu Jan 01 00:00:34 1970 +0000
1395 1395 summary: (34) head
1396 1396
1397 1397 o changeset: 33:68608f5145f9
1398 1398 | parent: 18:1aa84d96232a
1399 1399 ~ user: test
1400 1400 date: Thu Jan 01 00:00:33 1970 +0000
1401 1401 summary: (33) head
1402 1402
1403 1403
1404 1404 Do not crash or produce strange graphs if history is buggy
1405 1405
1406 1406 $ hg branch branch
1407 1407 marked working directory as branch branch
1408 1408 (branches are permanent and global, did you want a bookmark?)
1409 1409 $ commit 36 "buggy merge: identical parents" 35 35
1410 1410 $ hg log -G -l5
1411 1411 @ changeset: 36:08a19a744424
1412 1412 | branch: branch
1413 1413 | tag: tip
1414 1414 | parent: 35:9159c3644c5e
1415 1415 | parent: 35:9159c3644c5e
1416 1416 | user: test
1417 1417 | date: Thu Jan 01 00:00:36 1970 +0000
1418 1418 | summary: (36) buggy merge: identical parents
1419 1419 |
1420 1420 o changeset: 35:9159c3644c5e
1421 1421 | user: test
1422 1422 | date: Thu Jan 01 00:00:00 1970 +0000
1423 1423 | summary: 0
1424 1424 |
1425 1425 o changeset: 34:fea3ac5810e0
1426 1426 | parent: 32:d06dffa21a31
1427 1427 | user: test
1428 1428 | date: Thu Jan 01 00:00:34 1970 +0000
1429 1429 | summary: (34) head
1430 1430 |
1431 1431 | o changeset: 33:68608f5145f9
1432 1432 | | parent: 18:1aa84d96232a
1433 1433 | ~ user: test
1434 1434 | date: Thu Jan 01 00:00:33 1970 +0000
1435 1435 | summary: (33) head
1436 1436 |
1437 1437 o changeset: 32:d06dffa21a31
1438 1438 |\ parent: 27:886ed638191b
1439 1439 ~ ~ parent: 31:621d83e11f67
1440 1440 user: test
1441 1441 date: Thu Jan 01 00:00:32 1970 +0000
1442 1442 summary: (32) expand
1443 1443
1444 1444
1445 1445 Test log -G options
1446 1446
1447 1447 $ testlog() {
1448 1448 > hg log -G --print-revset "$@"
1449 1449 > hg log --template 'nodetag {rev}\n' "$@" | grep nodetag \
1450 1450 > | sed 's/.*nodetag/nodetag/' > log.nodes
1451 1451 > hg log -G --template 'nodetag {rev}\n' "$@" | grep nodetag \
1452 1452 > | sed 's/.*nodetag/nodetag/' > glog.nodes
1453 1453 > (cmp log.nodes glog.nodes || diff -u log.nodes glog.nodes) \
1454 1454 > | grep '^[-+@ ]' || :
1455 1455 > }
1456 1456
1457 1457 glog always reorders nodes which explains the difference with log
1458 1458
1459 1459 $ testlog -r 27 -r 25 -r 21 -r 34 -r 32 -r 31
1460 1460 ['27', '25', '21', '34', '32', '31']
1461 1461 []
1462 1462 <baseset- [21, 25, 27, 31, 32, 34]>
1463 1463 --- log.nodes * (glob)
1464 1464 +++ glog.nodes * (glob)
1465 1465 @@ -1,6 +1,6 @@
1466 1466 -nodetag 27
1467 1467 -nodetag 25
1468 1468 -nodetag 21
1469 1469 nodetag 34
1470 1470 nodetag 32
1471 1471 nodetag 31
1472 1472 +nodetag 27
1473 1473 +nodetag 25
1474 1474 +nodetag 21
1475 1475 $ testlog -u test -u not-a-user
1476 1476 []
1477 1477 (or
1478 1478 (list
1479 1479 (func
1480 1480 (symbol 'user')
1481 1481 (string 'test'))
1482 1482 (func
1483 1483 (symbol 'user')
1484 1484 (string 'not-a-user'))))
1485 1485 <filteredset
1486 1486 <spanset- 0:37>,
1487 1487 <addset
1488 1488 <filteredset
1489 1489 <fullreposet+ 0:37>,
1490 1490 <user 'test'>>,
1491 1491 <filteredset
1492 1492 <fullreposet+ 0:37>,
1493 1493 <user 'not-a-user'>>>>
1494 1494 $ testlog -b not-a-branch
1495 1495 abort: unknown revision 'not-a-branch'!
1496 1496 abort: unknown revision 'not-a-branch'!
1497 1497 abort: unknown revision 'not-a-branch'!
1498 1498 $ testlog -b 35 -b 36 --only-branch branch
1499 1499 []
1500 1500 (or
1501 1501 (list
1502 1502 (func
1503 1503 (symbol 'branch')
1504 1504 (string 'default'))
1505 1505 (or
1506 1506 (list
1507 1507 (func
1508 1508 (symbol 'branch')
1509 1509 (string 'branch'))
1510 1510 (func
1511 1511 (symbol 'branch')
1512 1512 (string 'branch'))))))
1513 1513 <filteredset
1514 1514 <spanset- 0:37>,
1515 1515 <addset
1516 1516 <filteredset
1517 1517 <fullreposet+ 0:37>,
1518 1518 <branch 'default'>>,
1519 1519 <addset
1520 1520 <filteredset
1521 1521 <fullreposet+ 0:37>,
1522 1522 <branch 'branch'>>,
1523 1523 <filteredset
1524 1524 <fullreposet+ 0:37>,
1525 1525 <branch 'branch'>>>>>
1526 1526 $ testlog -k expand -k merge
1527 1527 []
1528 1528 (or
1529 1529 (list
1530 1530 (func
1531 1531 (symbol 'keyword')
1532 1532 (string 'expand'))
1533 1533 (func
1534 1534 (symbol 'keyword')
1535 1535 (string 'merge'))))
1536 1536 <filteredset
1537 1537 <spanset- 0:37>,
1538 1538 <addset
1539 1539 <filteredset
1540 1540 <fullreposet+ 0:37>,
1541 1541 <keyword 'expand'>>,
1542 1542 <filteredset
1543 1543 <fullreposet+ 0:37>,
1544 1544 <keyword 'merge'>>>>
1545 1545 $ testlog --only-merges
1546 1546 []
1547 1547 (func
1548 1548 (symbol 'merge')
1549 1549 None)
1550 1550 <filteredset
1551 1551 <spanset- 0:37>,
1552 1552 <merge>>
1553 1553 $ testlog --no-merges
1554 1554 []
1555 1555 (not
1556 1556 (func
1557 1557 (symbol 'merge')
1558 1558 None))
1559 1559 <filteredset
1560 1560 <spanset- 0:37>,
1561 1561 <not
1562 1562 <filteredset
1563 1563 <spanset- 0:37>,
1564 1564 <merge>>>>
1565 1565 $ testlog --date '2 0 to 4 0'
1566 1566 []
1567 1567 (func
1568 1568 (symbol 'date')
1569 1569 (string '2 0 to 4 0'))
1570 1570 <filteredset
1571 1571 <spanset- 0:37>,
1572 1572 <date '2 0 to 4 0'>>
1573 1573 $ hg log -G -d 'brace ) in a date'
1574 1574 hg: parse error: invalid date: 'brace ) in a date'
1575 1575 [255]
1576 1576 $ testlog --prune 31 --prune 32
1577 1577 []
1578 1578 (not
1579 1579 (or
1580 1580 (list
1581 1581 (func
1582 1582 (symbol 'ancestors')
1583 1583 (string '31'))
1584 1584 (func
1585 1585 (symbol 'ancestors')
1586 1586 (string '32')))))
1587 1587 <filteredset
1588 1588 <spanset- 0:37>,
1589 1589 <not
1590 1590 <addset
1591 1591 <filteredset
1592 1592 <spanset- 0:37>,
1593 1593 <generatorsetdesc+>>,
1594 1594 <filteredset
1595 1595 <spanset- 0:37>,
1596 1596 <generatorsetdesc+>>>>>
1597 1597
1598 1598 Dedicated repo for --follow and paths filtering. The g is crafted to
1599 1599 have 2 filelog topological heads in a linear changeset graph.
1600 1600
1601 1601 $ cd ..
1602 1602 $ hg init follow
1603 1603 $ cd follow
1604 1604 $ testlog --follow
1605 1605 []
1606 1606 []
1607 1607 <baseset []>
1608 1608 $ testlog -rnull
1609 1609 ['null']
1610 1610 []
1611 1611 <baseset [-1]>
1612 1612 $ echo a > a
1613 1613 $ echo aa > aa
1614 1614 $ echo f > f
1615 1615 $ hg ci -Am "add a" a aa f
1616 1616 $ hg cp a b
1617 1617 $ hg cp f g
1618 1618 $ hg ci -m "copy a b"
1619 1619 $ mkdir dir
1620 1620 $ hg mv b dir
1621 1621 $ echo g >> g
1622 1622 $ echo f >> f
1623 1623 $ hg ci -m "mv b dir/b"
1624 1624 $ hg mv a b
1625 1625 $ hg cp -f f g
1626 1626 $ echo a > d
1627 1627 $ hg add d
1628 1628 $ hg ci -m "mv a b; add d"
1629 1629 $ hg mv dir/b e
1630 1630 $ hg ci -m "mv dir/b e"
1631 1631 $ hg log -G --template '({rev}) {desc|firstline}\n'
1632 1632 @ (4) mv dir/b e
1633 1633 |
1634 1634 o (3) mv a b; add d
1635 1635 |
1636 1636 o (2) mv b dir/b
1637 1637 |
1638 1638 o (1) copy a b
1639 1639 |
1640 1640 o (0) add a
1641 1641
1642 1642
1643 1643 $ testlog a
1644 1644 []
1645 1645 (func
1646 1646 (symbol 'filelog')
1647 1647 (string 'a'))
1648 1648 <filteredset
1649 1649 <spanset- 0:5>, set([0])>
1650 1650 $ testlog a b
1651 1651 []
1652 1652 (or
1653 1653 (list
1654 1654 (func
1655 1655 (symbol 'filelog')
1656 1656 (string 'a'))
1657 1657 (func
1658 1658 (symbol 'filelog')
1659 1659 (string 'b'))))
1660 1660 <filteredset
1661 1661 <spanset- 0:5>,
1662 1662 <addset
1663 1663 <baseset+ [0]>,
1664 1664 <baseset+ [1]>>>
1665 1665
1666 1666 Test falling back to slow path for non-existing files
1667 1667
1668 1668 $ testlog a c
1669 1669 []
1670 1670 (func
1671 1671 (symbol '_matchfiles')
1672 1672 (list
1673 1673 (string 'r:')
1674 1674 (string 'd:relpath')
1675 1675 (string 'p:a')
1676 1676 (string 'p:c')))
1677 1677 <filteredset
1678 1678 <spanset- 0:5>,
1679 1679 <matchfiles patterns=['a', 'c'], include=[] exclude=[], default='relpath', rev=2147483647>>
1680 1680
1681 1681 Test multiple --include/--exclude/paths
1682 1682
1683 1683 $ testlog --include a --include e --exclude b --exclude e a e
1684 1684 []
1685 1685 (func
1686 1686 (symbol '_matchfiles')
1687 1687 (list
1688 1688 (string 'r:')
1689 1689 (string 'd:relpath')
1690 1690 (string 'p:a')
1691 1691 (string 'p:e')
1692 1692 (string 'i:a')
1693 1693 (string 'i:e')
1694 1694 (string 'x:b')
1695 1695 (string 'x:e')))
1696 1696 <filteredset
1697 1697 <spanset- 0:5>,
1698 1698 <matchfiles patterns=['a', 'e'], include=['a', 'e'] exclude=['b', 'e'], default='relpath', rev=2147483647>>
1699 1699
1700 1700 Test glob expansion of pats
1701 1701
1702 1702 $ expandglobs=`$PYTHON -c "import mercurial.util; \
1703 1703 > print(mercurial.util.expandglobs and 'true' or 'false')"`
1704 1704 $ if [ $expandglobs = "true" ]; then
1705 1705 > testlog 'a*';
1706 1706 > else
1707 1707 > testlog a*;
1708 1708 > fi;
1709 1709 []
1710 1710 (func
1711 1711 (symbol 'filelog')
1712 1712 (string 'aa'))
1713 1713 <filteredset
1714 1714 <spanset- 0:5>, set([0])>
1715 1715
1716 1716 Test --follow on a non-existent directory
1717 1717
1718 1718 $ testlog -f dir
1719 1719 abort: cannot follow file not in parent revision: "dir"
1720 1720 abort: cannot follow file not in parent revision: "dir"
1721 1721 abort: cannot follow file not in parent revision: "dir"
1722 1722
1723 1723 Test --follow on a directory
1724 1724
1725 1725 $ hg up -q '.^'
1726 1726 $ testlog -f dir
1727 1727 []
1728 1728 (func
1729 1729 (symbol '_matchfiles')
1730 1730 (list
1731 1731 (string 'r:')
1732 1732 (string 'd:relpath')
1733 1733 (string 'p:dir')))
1734 1734 <filteredset
1735 1735 <generatorsetdesc->,
1736 1736 <matchfiles patterns=['dir'], include=[] exclude=[], default='relpath', rev=2147483647>>
1737 1737 $ hg up -q tip
1738 1738
1739 1739 Test --follow on file not in parent revision
1740 1740
1741 1741 $ testlog -f a
1742 1742 abort: cannot follow file not in parent revision: "a"
1743 1743 abort: cannot follow file not in parent revision: "a"
1744 1744 abort: cannot follow file not in parent revision: "a"
1745 1745
1746 1746 Test --follow and patterns
1747 1747
1748 1748 $ testlog -f 'glob:*'
1749 1749 []
1750 1750 (func
1751 1751 (symbol '_matchfiles')
1752 1752 (list
1753 1753 (string 'r:')
1754 1754 (string 'd:relpath')
1755 1755 (string 'p:glob:*')))
1756 1756 <filteredset
1757 1757 <generatorsetdesc->,
1758 1758 <matchfiles patterns=['glob:*'], include=[] exclude=[], default='relpath', rev=2147483647>>
1759 1759
1760 1760 Test --follow on a single rename
1761 1761
1762 1762 $ hg up -q 2
1763 1763 $ testlog -f a
1764 1764 []
1765 1765 []
1766 1766 <generatorsetdesc->
1767 1767
1768 1768 Test --follow and multiple renames
1769 1769
1770 1770 $ hg up -q tip
1771 1771 $ testlog -f e
1772 1772 []
1773 1773 []
1774 1774 <generatorsetdesc->
1775 1775
1776 1776 Test --follow and multiple filelog heads
1777 1777
1778 1778 $ hg up -q 2
1779 1779 $ testlog -f g
1780 1780 []
1781 1781 []
1782 1782 <generatorsetdesc->
1783 1783 $ cat log.nodes
1784 1784 nodetag 2
1785 1785 nodetag 1
1786 1786 nodetag 0
1787 1787 $ hg up -q tip
1788 1788 $ testlog -f g
1789 1789 []
1790 1790 []
1791 1791 <generatorsetdesc->
1792 1792 $ cat log.nodes
1793 1793 nodetag 3
1794 1794 nodetag 2
1795 1795 nodetag 0
1796 1796
1797 1797 Test --follow and multiple files
1798 1798
1799 1799 $ testlog -f g e
1800 1800 []
1801 1801 []
1802 1802 <generatorsetdesc->
1803 1803 $ cat log.nodes
1804 1804 nodetag 4
1805 1805 nodetag 3
1806 1806 nodetag 2
1807 1807 nodetag 1
1808 1808 nodetag 0
1809 1809
1810 1810 Test --follow null parent
1811 1811
1812 1812 $ hg up -q null
1813 1813 $ testlog -f
1814 1814 []
1815 1815 []
1816 1816 <baseset []>
1817 1817
1818 1818 Test --follow-first
1819 1819
1820 1820 $ hg up -q 3
1821 1821 $ echo ee > e
1822 1822 $ hg ci -Am "add another e" e
1823 1823 created new head
1824 1824 $ hg merge --tool internal:other 4
1825 1825 0 files updated, 1 files merged, 1 files removed, 0 files unresolved
1826 1826 (branch merge, don't forget to commit)
1827 1827 $ echo merge > e
1828 1828 $ hg ci -m "merge 5 and 4"
1829 1829 $ testlog --follow-first
1830 1830 []
1831 1831 []
1832 1832 <generatorsetdesc->
1833 1833
1834 1834 Cannot compare with log --follow-first FILE as it never worked
1835 1835
1836 1836 $ hg log -G --print-revset --follow-first e
1837 1837 []
1838 1838 []
1839 1839 <generatorsetdesc->
1840 1840 $ hg log -G --follow-first e --template '{rev} {desc|firstline}\n'
1841 1841 @ 6 merge 5 and 4
1842 1842 |\
1843 1843 | ~
1844 1844 o 5 add another e
1845 1845 |
1846 1846 ~
1847 1847
1848 1848 Test --copies
1849 1849
1850 1850 $ hg log -G --copies --template "{rev} {desc|firstline} \
1851 1851 > copies: {file_copies_switch}\n"
1852 1852 @ 6 merge 5 and 4 copies:
1853 1853 |\
1854 1854 | o 5 add another e copies:
1855 1855 | |
1856 1856 o | 4 mv dir/b e copies: e (dir/b)
1857 1857 |/
1858 1858 o 3 mv a b; add d copies: b (a)g (f)
1859 1859 |
1860 1860 o 2 mv b dir/b copies: dir/b (b)
1861 1861 |
1862 1862 o 1 copy a b copies: b (a)g (f)
1863 1863 |
1864 1864 o 0 add a copies:
1865 1865
1866 1866 Test "set:..." and parent revision
1867 1867
1868 1868 $ hg up -q 4
1869 1869 $ testlog "set:copied()"
1870 1870 []
1871 1871 (func
1872 1872 (symbol '_matchfiles')
1873 1873 (list
1874 1874 (string 'r:')
1875 1875 (string 'd:relpath')
1876 1876 (string 'p:set:copied()')))
1877 1877 <filteredset
1878 1878 <spanset- 0:7>,
1879 1879 <matchfiles patterns=['set:copied()'], include=[] exclude=[], default='relpath', rev=2147483647>>
1880 1880 $ testlog --include "set:copied()"
1881 1881 []
1882 1882 (func
1883 1883 (symbol '_matchfiles')
1884 1884 (list
1885 1885 (string 'r:')
1886 1886 (string 'd:relpath')
1887 1887 (string 'i:set:copied()')))
1888 1888 <filteredset
1889 1889 <spanset- 0:7>,
1890 1890 <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>>
1891 1891 $ testlog -r "sort(file('set:copied()'), -rev)"
1892 1892 ["sort(file('set:copied()'), -rev)"]
1893 1893 []
1894 1894 <filteredset
1895 1895 <fullreposet- 0:7>,
1896 1896 <matchfiles patterns=['set:copied()'], include=[] exclude=[], default='glob', rev=None>>
1897 1897
1898 1898 Test --removed
1899 1899
1900 1900 $ testlog --removed
1901 1901 []
1902 1902 []
1903 1903 <spanset- 0:7>
1904 1904 $ testlog --removed a
1905 1905 []
1906 1906 (func
1907 1907 (symbol '_matchfiles')
1908 1908 (list
1909 1909 (string 'r:')
1910 1910 (string 'd:relpath')
1911 1911 (string 'p:a')))
1912 1912 <filteredset
1913 1913 <spanset- 0:7>,
1914 1914 <matchfiles patterns=['a'], include=[] exclude=[], default='relpath', rev=2147483647>>
1915 1915 $ testlog --removed --follow a
1916 1916 []
1917 1917 (func
1918 1918 (symbol '_matchfiles')
1919 1919 (list
1920 1920 (string 'r:')
1921 1921 (string 'd:relpath')
1922 1922 (string 'p:a')))
1923 1923 <filteredset
1924 1924 <generatorsetdesc->,
1925 1925 <matchfiles patterns=['a'], include=[] exclude=[], default='relpath', rev=2147483647>>
1926 1926
1927 1927 Test --patch and --stat with --follow and --follow-first
1928 1928
1929 1929 $ hg up -q 3
1930 1930 $ hg log -G --git --patch b
1931 1931 o changeset: 1:216d4c92cf98
1932 1932 | user: test
1933 1933 ~ date: Thu Jan 01 00:00:00 1970 +0000
1934 1934 summary: copy a b
1935 1935
1936 1936 diff --git a/a b/b
1937 1937 copy from a
1938 1938 copy to b
1939 1939
1940 1940
1941 1941 $ hg log -G --git --stat b
1942 1942 o changeset: 1:216d4c92cf98
1943 1943 | user: test
1944 1944 ~ date: Thu Jan 01 00:00:00 1970 +0000
1945 1945 summary: copy a b
1946 1946
1947 1947 b | 0
1948 1948 1 files changed, 0 insertions(+), 0 deletions(-)
1949 1949
1950 1950
1951 1951 $ hg log -G --git --patch --follow b
1952 1952 o changeset: 1:216d4c92cf98
1953 1953 | user: test
1954 1954 | date: Thu Jan 01 00:00:00 1970 +0000
1955 1955 | summary: copy a b
1956 1956 |
1957 1957 | diff --git a/a b/b
1958 1958 | copy from a
1959 1959 | copy to b
1960 1960 |
1961 1961 o changeset: 0:f8035bb17114
1962 1962 user: test
1963 1963 date: Thu Jan 01 00:00:00 1970 +0000
1964 1964 summary: add a
1965 1965
1966 1966 diff --git a/a b/a
1967 1967 new file mode 100644
1968 1968 --- /dev/null
1969 1969 +++ b/a
1970 1970 @@ -0,0 +1,1 @@
1971 1971 +a
1972 1972
1973 1973
1974 1974 $ hg log -G --git --stat --follow b
1975 1975 o changeset: 1:216d4c92cf98
1976 1976 | user: test
1977 1977 | date: Thu Jan 01 00:00:00 1970 +0000
1978 1978 | summary: copy a b
1979 1979 |
1980 1980 | b | 0
1981 1981 | 1 files changed, 0 insertions(+), 0 deletions(-)
1982 1982 |
1983 1983 o changeset: 0:f8035bb17114
1984 1984 user: test
1985 1985 date: Thu Jan 01 00:00:00 1970 +0000
1986 1986 summary: add a
1987 1987
1988 1988 a | 1 +
1989 1989 1 files changed, 1 insertions(+), 0 deletions(-)
1990 1990
1991 1991
1992 1992 $ hg up -q 6
1993 1993 $ hg log -G --git --patch --follow-first e
1994 1994 @ changeset: 6:fc281d8ff18d
1995 1995 |\ tag: tip
1996 1996 | ~ parent: 5:99b31f1c2782
1997 1997 | parent: 4:17d952250a9d
1998 1998 | user: test
1999 1999 | date: Thu Jan 01 00:00:00 1970 +0000
2000 2000 | summary: merge 5 and 4
2001 2001 |
2002 2002 | diff --git a/e b/e
2003 2003 | --- a/e
2004 2004 | +++ b/e
2005 2005 | @@ -1,1 +1,1 @@
2006 2006 | -ee
2007 2007 | +merge
2008 2008 |
2009 2009 o changeset: 5:99b31f1c2782
2010 2010 | parent: 3:5918b8d165d1
2011 2011 ~ user: test
2012 2012 date: Thu Jan 01 00:00:00 1970 +0000
2013 2013 summary: add another e
2014 2014
2015 2015 diff --git a/e b/e
2016 2016 new file mode 100644
2017 2017 --- /dev/null
2018 2018 +++ b/e
2019 2019 @@ -0,0 +1,1 @@
2020 2020 +ee
2021 2021
2022 2022
2023 2023 Test old-style --rev
2024 2024
2025 2025 $ hg tag 'foo-bar'
2026 2026 $ testlog -r 'foo-bar'
2027 2027 ['foo-bar']
2028 2028 []
2029 2029 <baseset [6]>
2030 2030
2031 2031 Test --follow and forward --rev
2032 2032
2033 2033 $ hg up -q 6
2034 2034 $ echo g > g
2035 2035 $ hg ci -Am 'add g' g
2036 2036 created new head
2037 2037 $ hg up -q 2
2038 2038 $ hg log -G --template "{rev} {desc|firstline}\n"
2039 2039 o 8 add g
2040 2040 |
2041 2041 | o 7 Added tag foo-bar for changeset fc281d8ff18d
2042 2042 |/
2043 2043 o 6 merge 5 and 4
2044 2044 |\
2045 2045 | o 5 add another e
2046 2046 | |
2047 2047 o | 4 mv dir/b e
2048 2048 |/
2049 2049 o 3 mv a b; add d
2050 2050 |
2051 2051 @ 2 mv b dir/b
2052 2052 |
2053 2053 o 1 copy a b
2054 2054 |
2055 2055 o 0 add a
2056 2056
2057 2057 $ hg archive -r 7 archive
2058 2058 $ grep changessincelatesttag archive/.hg_archival.txt
2059 2059 changessincelatesttag: 1
2060 2060 $ rm -r archive
2061 2061
2062 2062 changessincelatesttag with no prior tag
2063 2063 $ hg archive -r 4 archive
2064 2064 $ grep changessincelatesttag archive/.hg_archival.txt
2065 2065 changessincelatesttag: 5
2066 2066
2067 2067 $ hg export 'all()'
2068 2068 # HG changeset patch
2069 2069 # User test
2070 2070 # Date 0 0
2071 2071 # Thu Jan 01 00:00:00 1970 +0000
2072 2072 # Node ID f8035bb17114da16215af3436ec5222428ace8ee
2073 2073 # Parent 0000000000000000000000000000000000000000
2074 2074 add a
2075 2075
2076 2076 diff -r 000000000000 -r f8035bb17114 a
2077 2077 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2078 2078 +++ b/a Thu Jan 01 00:00:00 1970 +0000
2079 2079 @@ -0,0 +1,1 @@
2080 2080 +a
2081 2081 diff -r 000000000000 -r f8035bb17114 aa
2082 2082 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2083 2083 +++ b/aa Thu Jan 01 00:00:00 1970 +0000
2084 2084 @@ -0,0 +1,1 @@
2085 2085 +aa
2086 2086 diff -r 000000000000 -r f8035bb17114 f
2087 2087 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2088 2088 +++ b/f Thu Jan 01 00:00:00 1970 +0000
2089 2089 @@ -0,0 +1,1 @@
2090 2090 +f
2091 2091 # HG changeset patch
2092 2092 # User test
2093 2093 # Date 0 0
2094 2094 # Thu Jan 01 00:00:00 1970 +0000
2095 2095 # Node ID 216d4c92cf98ff2b4641d508b76b529f3d424c92
2096 2096 # Parent f8035bb17114da16215af3436ec5222428ace8ee
2097 2097 copy a b
2098 2098
2099 2099 diff -r f8035bb17114 -r 216d4c92cf98 b
2100 2100 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2101 2101 +++ b/b Thu Jan 01 00:00:00 1970 +0000
2102 2102 @@ -0,0 +1,1 @@
2103 2103 +a
2104 2104 diff -r f8035bb17114 -r 216d4c92cf98 g
2105 2105 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2106 2106 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2107 2107 @@ -0,0 +1,1 @@
2108 2108 +f
2109 2109 # HG changeset patch
2110 2110 # User test
2111 2111 # Date 0 0
2112 2112 # Thu Jan 01 00:00:00 1970 +0000
2113 2113 # Node ID bb573313a9e8349099b6ea2b2fb1fc7f424446f3
2114 2114 # Parent 216d4c92cf98ff2b4641d508b76b529f3d424c92
2115 2115 mv b dir/b
2116 2116
2117 2117 diff -r 216d4c92cf98 -r bb573313a9e8 b
2118 2118 --- a/b Thu Jan 01 00:00:00 1970 +0000
2119 2119 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2120 2120 @@ -1,1 +0,0 @@
2121 2121 -a
2122 2122 diff -r 216d4c92cf98 -r bb573313a9e8 dir/b
2123 2123 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2124 2124 +++ b/dir/b Thu Jan 01 00:00:00 1970 +0000
2125 2125 @@ -0,0 +1,1 @@
2126 2126 +a
2127 2127 diff -r 216d4c92cf98 -r bb573313a9e8 f
2128 2128 --- a/f Thu Jan 01 00:00:00 1970 +0000
2129 2129 +++ b/f Thu Jan 01 00:00:00 1970 +0000
2130 2130 @@ -1,1 +1,2 @@
2131 2131 f
2132 2132 +f
2133 2133 diff -r 216d4c92cf98 -r bb573313a9e8 g
2134 2134 --- a/g Thu Jan 01 00:00:00 1970 +0000
2135 2135 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2136 2136 @@ -1,1 +1,2 @@
2137 2137 f
2138 2138 +g
2139 2139 # HG changeset patch
2140 2140 # User test
2141 2141 # Date 0 0
2142 2142 # Thu Jan 01 00:00:00 1970 +0000
2143 2143 # Node ID 5918b8d165d1364e78a66d02e66caa0133c5d1ed
2144 2144 # Parent bb573313a9e8349099b6ea2b2fb1fc7f424446f3
2145 2145 mv a b; add d
2146 2146
2147 2147 diff -r bb573313a9e8 -r 5918b8d165d1 a
2148 2148 --- a/a Thu Jan 01 00:00:00 1970 +0000
2149 2149 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2150 2150 @@ -1,1 +0,0 @@
2151 2151 -a
2152 2152 diff -r bb573313a9e8 -r 5918b8d165d1 b
2153 2153 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2154 2154 +++ b/b Thu Jan 01 00:00:00 1970 +0000
2155 2155 @@ -0,0 +1,1 @@
2156 2156 +a
2157 2157 diff -r bb573313a9e8 -r 5918b8d165d1 d
2158 2158 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2159 2159 +++ b/d Thu Jan 01 00:00:00 1970 +0000
2160 2160 @@ -0,0 +1,1 @@
2161 2161 +a
2162 2162 diff -r bb573313a9e8 -r 5918b8d165d1 g
2163 2163 --- a/g Thu Jan 01 00:00:00 1970 +0000
2164 2164 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2165 2165 @@ -1,2 +1,2 @@
2166 2166 f
2167 2167 -g
2168 2168 +f
2169 2169 # HG changeset patch
2170 2170 # User test
2171 2171 # Date 0 0
2172 2172 # Thu Jan 01 00:00:00 1970 +0000
2173 2173 # Node ID 17d952250a9d03cc3dc77b199ab60e959b9b0260
2174 2174 # Parent 5918b8d165d1364e78a66d02e66caa0133c5d1ed
2175 2175 mv dir/b e
2176 2176
2177 2177 diff -r 5918b8d165d1 -r 17d952250a9d dir/b
2178 2178 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2179 2179 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2180 2180 @@ -1,1 +0,0 @@
2181 2181 -a
2182 2182 diff -r 5918b8d165d1 -r 17d952250a9d e
2183 2183 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2184 2184 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2185 2185 @@ -0,0 +1,1 @@
2186 2186 +a
2187 2187 # HG changeset patch
2188 2188 # User test
2189 2189 # Date 0 0
2190 2190 # Thu Jan 01 00:00:00 1970 +0000
2191 2191 # Node ID 99b31f1c2782e2deb1723cef08930f70fc84b37b
2192 2192 # Parent 5918b8d165d1364e78a66d02e66caa0133c5d1ed
2193 2193 add another e
2194 2194
2195 2195 diff -r 5918b8d165d1 -r 99b31f1c2782 e
2196 2196 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2197 2197 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2198 2198 @@ -0,0 +1,1 @@
2199 2199 +ee
2200 2200 # HG changeset patch
2201 2201 # User test
2202 2202 # Date 0 0
2203 2203 # Thu Jan 01 00:00:00 1970 +0000
2204 2204 # Node ID fc281d8ff18d999ad6497b3d27390bcd695dcc73
2205 2205 # Parent 99b31f1c2782e2deb1723cef08930f70fc84b37b
2206 2206 # Parent 17d952250a9d03cc3dc77b199ab60e959b9b0260
2207 2207 merge 5 and 4
2208 2208
2209 2209 diff -r 99b31f1c2782 -r fc281d8ff18d dir/b
2210 2210 --- a/dir/b Thu Jan 01 00:00:00 1970 +0000
2211 2211 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
2212 2212 @@ -1,1 +0,0 @@
2213 2213 -a
2214 2214 diff -r 99b31f1c2782 -r fc281d8ff18d e
2215 2215 --- a/e Thu Jan 01 00:00:00 1970 +0000
2216 2216 +++ b/e Thu Jan 01 00:00:00 1970 +0000
2217 2217 @@ -1,1 +1,1 @@
2218 2218 -ee
2219 2219 +merge
2220 2220 # HG changeset patch
2221 2221 # User test
2222 2222 # Date 0 0
2223 2223 # Thu Jan 01 00:00:00 1970 +0000
2224 2224 # Node ID 02dbb8e276b8ab7abfd07cab50c901647e75c2dd
2225 2225 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2226 2226 Added tag foo-bar for changeset fc281d8ff18d
2227 2227
2228 2228 diff -r fc281d8ff18d -r 02dbb8e276b8 .hgtags
2229 2229 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2230 2230 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2231 2231 @@ -0,0 +1,1 @@
2232 2232 +fc281d8ff18d999ad6497b3d27390bcd695dcc73 foo-bar
2233 2233 # HG changeset patch
2234 2234 # User test
2235 2235 # Date 0 0
2236 2236 # Thu Jan 01 00:00:00 1970 +0000
2237 2237 # Node ID 24c2e826ddebf80f9dcd60b856bdb8e6715c5449
2238 2238 # Parent fc281d8ff18d999ad6497b3d27390bcd695dcc73
2239 2239 add g
2240 2240
2241 2241 diff -r fc281d8ff18d -r 24c2e826ddeb g
2242 2242 --- a/g Thu Jan 01 00:00:00 1970 +0000
2243 2243 +++ b/g Thu Jan 01 00:00:00 1970 +0000
2244 2244 @@ -1,2 +1,1 @@
2245 2245 -f
2246 2246 -f
2247 2247 +g
2248 2248 $ testlog --follow -r6 -r8 -r5 -r7 -r4
2249 2249 ['6', '8', '5', '7', '4']
2250 2250 []
2251 2251 <generatorsetdesc->
2252 2252
2253 2253 Test --follow-first and forward --rev
2254 2254
2255 2255 $ testlog --follow-first -r6 -r8 -r5 -r7 -r4
2256 2256 ['6', '8', '5', '7', '4']
2257 2257 []
2258 2258 <generatorsetdesc->
2259 2259
2260 2260 Test --follow and backward --rev
2261 2261
2262 2262 $ testlog --follow -r6 -r5 -r7 -r8 -r4
2263 2263 ['6', '5', '7', '8', '4']
2264 2264 []
2265 2265 <generatorsetdesc->
2266 2266
2267 2267 Test --follow-first and backward --rev
2268 2268
2269 2269 $ testlog --follow-first -r6 -r5 -r7 -r8 -r4
2270 2270 ['6', '5', '7', '8', '4']
2271 2271 []
2272 2272 <generatorsetdesc->
2273 2273
2274 2274 Test --follow with --rev of graphlog extension
2275 2275
2276 2276 $ hg --config extensions.graphlog= glog -qfr1
2277 2277 o 1:216d4c92cf98
2278 2278 |
2279 2279 o 0:f8035bb17114
2280 2280
2281 2281
2282 2282 Test subdir
2283 2283
2284 2284 $ hg up -q 3
2285 2285 $ cd dir
2286 2286 $ testlog .
2287 2287 []
2288 2288 (func
2289 2289 (symbol '_matchfiles')
2290 2290 (list
2291 2291 (string 'r:')
2292 2292 (string 'd:relpath')
2293 2293 (string 'p:.')))
2294 2294 <filteredset
2295 2295 <spanset- 0:9>,
2296 2296 <matchfiles patterns=['.'], include=[] exclude=[], default='relpath', rev=2147483647>>
2297 2297 $ testlog ../b
2298 2298 []
2299 2299 (func
2300 2300 (symbol 'filelog')
2301 2301 (string '../b'))
2302 2302 <filteredset
2303 2303 <spanset- 0:9>, set([1])>
2304 2304 $ testlog -f ../b
2305 2305 []
2306 2306 []
2307 2307 <generatorsetdesc->
2308 2308 $ cd ..
2309 2309
2310 2310 Test --hidden
2311 2311 (enable obsolete)
2312 2312
2313 2313 $ cat >> $HGRCPATH << EOF
2314 2314 > [experimental]
2315 2315 > evolution.createmarkers=True
2316 2316 > EOF
2317 2317
2318 2318 $ hg debugobsolete `hg id --debug -i -r 8`
2319 2319 obsoleted 1 changesets
2320 2320 $ testlog
2321 2321 []
2322 2322 []
2323 2323 <spanset- 0:9>
2324 2324 $ testlog --hidden
2325 2325 []
2326 2326 []
2327 2327 <spanset- 0:9>
2328 2328 $ hg log -G --template '{rev} {desc}\n'
2329 2329 o 7 Added tag foo-bar for changeset fc281d8ff18d
2330 2330 |
2331 2331 o 6 merge 5 and 4
2332 2332 |\
2333 2333 | o 5 add another e
2334 2334 | |
2335 2335 o | 4 mv dir/b e
2336 2336 |/
2337 2337 @ 3 mv a b; add d
2338 2338 |
2339 2339 o 2 mv b dir/b
2340 2340 |
2341 2341 o 1 copy a b
2342 2342 |
2343 2343 o 0 add a
2344 2344
2345 2345
2346 2346 A template without trailing newline should do something sane
2347 2347
2348 2348 $ hg log -G -r ::2 --template '{rev} {desc}'
2349 2349 o 2 mv b dir/b
2350 2350 |
2351 2351 o 1 copy a b
2352 2352 |
2353 2353 o 0 add a
2354 2354
2355 2355
2356 2356 Extra newlines must be preserved
2357 2357
2358 2358 $ hg log -G -r ::2 --template '\n{rev} {desc}\n\n'
2359 2359 o
2360 2360 | 2 mv b dir/b
2361 2361 |
2362 2362 o
2363 2363 | 1 copy a b
2364 2364 |
2365 2365 o
2366 2366 0 add a
2367 2367
2368 2368
2369 2369 The almost-empty template should do something sane too ...
2370 2370
2371 2371 $ hg log -G -r ::2 --template '\n'
2372 2372 o
2373 2373 |
2374 2374 o
2375 2375 |
2376 2376 o
2377 2377
2378 2378
2379 2379 issue3772
2380 2380
2381 2381 $ hg log -G -r :null
2382 2382 o changeset: 0:f8035bb17114
2383 2383 | user: test
2384 2384 | date: Thu Jan 01 00:00:00 1970 +0000
2385 2385 | summary: add a
2386 2386 |
2387 2387 o changeset: -1:000000000000
2388 2388 user:
2389 2389 date: Thu Jan 01 00:00:00 1970 +0000
2390 2390
2391 2391 $ hg log -G -r null:null
2392 2392 o changeset: -1:000000000000
2393 2393 user:
2394 2394 date: Thu Jan 01 00:00:00 1970 +0000
2395 2395
2396 2396
2397 2397 should not draw line down to null due to the magic of fullreposet
2398 2398
2399 2399 $ hg log -G -r 'all()' | tail -6
2400 2400 |
2401 2401 o changeset: 0:f8035bb17114
2402 2402 user: test
2403 2403 date: Thu Jan 01 00:00:00 1970 +0000
2404 2404 summary: add a
2405 2405
2406 2406
2407 2407 $ hg log -G -r 'branch(default)' | tail -6
2408 2408 |
2409 2409 o changeset: 0:f8035bb17114
2410 2410 user: test
2411 2411 date: Thu Jan 01 00:00:00 1970 +0000
2412 2412 summary: add a
2413 2413
2414 2414
2415 2415 working-directory revision
2416 2416
2417 2417 $ hg log -G -qr '. + wdir()'
2418 2418 o 2147483647:ffffffffffff
2419 2419 |
2420 2420 @ 3:5918b8d165d1
2421 2421 |
2422 2422 ~
2423 2423
2424 2424 node template with changesetprinter:
2425 2425
2426 2426 $ hg log -Gqr 5:7 --config ui.graphnodetemplate='"{rev}"'
2427 2427 7 7:02dbb8e276b8
2428 2428 |
2429 2429 6 6:fc281d8ff18d
2430 2430 |\
2431 2431 | ~
2432 2432 5 5:99b31f1c2782
2433 2433 |
2434 2434 ~
2435 2435
2436 2436 node template with changesettemplater (shared cache variable):
2437 2437
2438 2438 $ hg log -Gr 5:7 -T '{latesttag % "{rev} {tag}+{distance}"}\n' \
2439 2439 > --config ui.graphnodetemplate='{ifeq(latesttagdistance, 0, "#", graphnode)}'
2440 2440 o 7 foo-bar+1
2441 2441 |
2442 2442 # 6 foo-bar+0
2443 2443 |\
2444 2444 | ~
2445 2445 o 5 null+5
2446 2446 |
2447 2447 ~
2448 2448
2449 2449 label() should just work in node template:
2450 2450
2451 2451 $ hg log -Gqr 7 --config extensions.color= --color=debug \
2452 2452 > --config ui.graphnodetemplate='{label("branch.{branch}", rev)}'
2453 2453 [branch.default|7] [log.node|7:02dbb8e276b8]
2454 2454 |
2455 2455 ~
2456 2456
2457 2457 $ cd ..
2458 2458
2459 2459 change graph edge styling
2460 2460
2461 2461 $ cd repo
2462 2462 $ cat << EOF >> $HGRCPATH
2463 2463 > [experimental]
2464 2464 > graphstyle.parent = |
2465 2465 > graphstyle.grandparent = :
2466 2466 > graphstyle.missing =
2467 2467 > EOF
2468 2468 $ hg log -G -r 'file("a")' -m
2469 2469 @ changeset: 36:08a19a744424
2470 2470 : branch: branch
2471 2471 : tag: tip
2472 2472 : parent: 35:9159c3644c5e
2473 2473 : parent: 35:9159c3644c5e
2474 2474 : user: test
2475 2475 : date: Thu Jan 01 00:00:36 1970 +0000
2476 2476 : summary: (36) buggy merge: identical parents
2477 2477 :
2478 2478 o changeset: 32:d06dffa21a31
2479 2479 |\ parent: 27:886ed638191b
2480 2480 | : parent: 31:621d83e11f67
2481 2481 | : user: test
2482 2482 | : date: Thu Jan 01 00:00:32 1970 +0000
2483 2483 | : summary: (32) expand
2484 2484 | :
2485 2485 o : changeset: 31:621d83e11f67
2486 2486 |\: parent: 21:d42a756af44d
2487 2487 | : parent: 30:6e11cd4b648f
2488 2488 | : user: test
2489 2489 | : date: Thu Jan 01 00:00:31 1970 +0000
2490 2490 | : summary: (31) expand
2491 2491 | :
2492 2492 o : changeset: 30:6e11cd4b648f
2493 2493 |\ \ parent: 28:44ecd0b9ae99
2494 2494 | ~ : parent: 29:cd9bb2be7593
2495 2495 | : user: test
2496 2496 | : date: Thu Jan 01 00:00:30 1970 +0000
2497 2497 | : summary: (30) expand
2498 2498 | /
2499 2499 o : changeset: 28:44ecd0b9ae99
2500 2500 |\ \ parent: 1:6db2ef61d156
2501 2501 | ~ : parent: 26:7f25b6c2f0b9
2502 2502 | : user: test
2503 2503 | : date: Thu Jan 01 00:00:28 1970 +0000
2504 2504 | : summary: (28) merge zero known
2505 2505 | /
2506 2506 o : changeset: 26:7f25b6c2f0b9
2507 2507 |\ \ parent: 18:1aa84d96232a
2508 2508 | | : parent: 25:91da8ed57247
2509 2509 | | : user: test
2510 2510 | | : date: Thu Jan 01 00:00:26 1970 +0000
2511 2511 | | : summary: (26) merge one known; far right
2512 2512 | | :
2513 2513 | o : changeset: 25:91da8ed57247
2514 2514 | |\: parent: 21:d42a756af44d
2515 2515 | | : parent: 24:a9c19a3d96b7
2516 2516 | | : user: test
2517 2517 | | : date: Thu Jan 01 00:00:25 1970 +0000
2518 2518 | | : summary: (25) merge one known; far left
2519 2519 | | :
2520 2520 | o : changeset: 24:a9c19a3d96b7
2521 2521 | |\ \ parent: 0:e6eb3150255d
2522 2522 | | ~ : parent: 23:a01cddf0766d
2523 2523 | | : user: test
2524 2524 | | : date: Thu Jan 01 00:00:24 1970 +0000
2525 2525 | | : summary: (24) merge one known; immediate right
2526 2526 | | /
2527 2527 | o : changeset: 23:a01cddf0766d
2528 2528 | |\ \ parent: 1:6db2ef61d156
2529 2529 | | ~ : parent: 22:e0d9cccacb5d
2530 2530 | | : user: test
2531 2531 | | : date: Thu Jan 01 00:00:23 1970 +0000
2532 2532 | | : summary: (23) merge one known; immediate left
2533 2533 | | /
2534 2534 | o : changeset: 22:e0d9cccacb5d
2535 2535 |/:/ parent: 18:1aa84d96232a
2536 2536 | : parent: 21:d42a756af44d
2537 2537 | : user: test
2538 2538 | : date: Thu Jan 01 00:00:22 1970 +0000
2539 2539 | : summary: (22) merge two known; one far left, one far right
2540 2540 | :
2541 2541 | o changeset: 21:d42a756af44d
2542 2542 | |\ parent: 19:31ddc2c1573b
2543 2543 | | | parent: 20:d30ed6450e32
2544 2544 | | | user: test
2545 2545 | | | date: Thu Jan 01 00:00:21 1970 +0000
2546 2546 | | | summary: (21) expand
2547 2547 | | |
2548 2548 +---o changeset: 20:d30ed6450e32
2549 2549 | | | parent: 0:e6eb3150255d
2550 2550 | | ~ parent: 18:1aa84d96232a
2551 2551 | | user: test
2552 2552 | | date: Thu Jan 01 00:00:20 1970 +0000
2553 2553 | | summary: (20) merge two known; two far right
2554 2554 | |
2555 2555 | o changeset: 19:31ddc2c1573b
2556 2556 | |\ parent: 15:1dda3f72782d
2557 2557 | | | parent: 17:44765d7c06e0
2558 2558 | | | user: test
2559 2559 | | | date: Thu Jan 01 00:00:19 1970 +0000
2560 2560 | | | summary: (19) expand
2561 2561 | | |
2562 2562 o | | changeset: 18:1aa84d96232a
2563 2563 |\| | parent: 1:6db2ef61d156
2564 2564 ~ | | parent: 15:1dda3f72782d
2565 2565 | | user: test
2566 2566 | | date: Thu Jan 01 00:00:18 1970 +0000
2567 2567 | | summary: (18) merge two known; two far left
2568 2568 / /
2569 2569 | o changeset: 17:44765d7c06e0
2570 2570 | |\ parent: 12:86b91144a6e9
2571 2571 | | | parent: 16:3677d192927d
2572 2572 | | | user: test
2573 2573 | | | date: Thu Jan 01 00:00:17 1970 +0000
2574 2574 | | | summary: (17) expand
2575 2575 | | |
2576 2576 | | o changeset: 16:3677d192927d
2577 2577 | | |\ parent: 0:e6eb3150255d
2578 2578 | | ~ ~ parent: 1:6db2ef61d156
2579 2579 | | user: test
2580 2580 | | date: Thu Jan 01 00:00:16 1970 +0000
2581 2581 | | summary: (16) merge two known; one immediate right, one near right
2582 2582 | |
2583 2583 o | changeset: 15:1dda3f72782d
2584 2584 |\ \ parent: 13:22d8966a97e3
2585 2585 | | | parent: 14:8eac370358ef
2586 2586 | | | user: test
2587 2587 | | | date: Thu Jan 01 00:00:15 1970 +0000
2588 2588 | | | summary: (15) expand
2589 2589 | | |
2590 2590 | o | changeset: 14:8eac370358ef
2591 2591 | |\| parent: 0:e6eb3150255d
2592 2592 | ~ | parent: 12:86b91144a6e9
2593 2593 | | user: test
2594 2594 | | date: Thu Jan 01 00:00:14 1970 +0000
2595 2595 | | summary: (14) merge two known; one immediate right, one far right
2596 2596 | /
2597 2597 o | changeset: 13:22d8966a97e3
2598 2598 |\ \ parent: 9:7010c0af0a35
2599 2599 | | | parent: 11:832d76e6bdf2
2600 2600 | | | user: test
2601 2601 | | | date: Thu Jan 01 00:00:13 1970 +0000
2602 2602 | | | summary: (13) expand
2603 2603 | | |
2604 2604 +---o changeset: 12:86b91144a6e9
2605 2605 | | | parent: 1:6db2ef61d156
2606 2606 | | ~ parent: 9:7010c0af0a35
2607 2607 | | user: test
2608 2608 | | date: Thu Jan 01 00:00:12 1970 +0000
2609 2609 | | summary: (12) merge two known; one immediate right, one far left
2610 2610 | |
2611 2611 | o changeset: 11:832d76e6bdf2
2612 2612 | |\ parent: 6:b105a072e251
2613 2613 | | | parent: 10:74c64d036d72
2614 2614 | | | user: test
2615 2615 | | | date: Thu Jan 01 00:00:11 1970 +0000
2616 2616 | | | summary: (11) expand
2617 2617 | | |
2618 2618 | | o changeset: 10:74c64d036d72
2619 2619 | |/| parent: 0:e6eb3150255d
2620 2620 | | ~ parent: 6:b105a072e251
2621 2621 | | user: test
2622 2622 | | date: Thu Jan 01 00:00:10 1970 +0000
2623 2623 | | summary: (10) merge two known; one immediate left, one near right
2624 2624 | |
2625 2625 o | changeset: 9:7010c0af0a35
2626 2626 |\ \ parent: 7:b632bb1b1224
2627 2627 | | | parent: 8:7a0b11f71937
2628 2628 | | | user: test
2629 2629 | | | date: Thu Jan 01 00:00:09 1970 +0000
2630 2630 | | | summary: (9) expand
2631 2631 | | |
2632 2632 | o | changeset: 8:7a0b11f71937
2633 2633 |/| | parent: 0:e6eb3150255d
2634 2634 | ~ | parent: 7:b632bb1b1224
2635 2635 | | user: test
2636 2636 | | date: Thu Jan 01 00:00:08 1970 +0000
2637 2637 | | summary: (8) merge two known; one immediate left, one far right
2638 2638 | /
2639 2639 o | changeset: 7:b632bb1b1224
2640 2640 |\ \ parent: 2:3d9a33b8d1e1
2641 2641 | ~ | parent: 5:4409d547b708
2642 2642 | | user: test
2643 2643 | | date: Thu Jan 01 00:00:07 1970 +0000
2644 2644 | | summary: (7) expand
2645 2645 | /
2646 2646 | o changeset: 6:b105a072e251
2647 2647 |/| parent: 2:3d9a33b8d1e1
2648 2648 | ~ parent: 5:4409d547b708
2649 2649 | user: test
2650 2650 | date: Thu Jan 01 00:00:06 1970 +0000
2651 2651 | summary: (6) merge two known; one immediate left, one far left
2652 2652 |
2653 2653 o changeset: 5:4409d547b708
2654 2654 |\ parent: 3:27eef8ed80b4
2655 2655 | ~ parent: 4:26a8bac39d9f
2656 2656 | user: test
2657 2657 | date: Thu Jan 01 00:00:05 1970 +0000
2658 2658 | summary: (5) expand
2659 2659 |
2660 2660 o changeset: 4:26a8bac39d9f
2661 2661 |\ parent: 1:6db2ef61d156
2662 2662 ~ ~ parent: 3:27eef8ed80b4
2663 2663 user: test
2664 2664 date: Thu Jan 01 00:00:04 1970 +0000
2665 2665 summary: (4) merge two known; one immediate left, one immediate right
2666 2666
2667 2667
2668 2668 Setting HGPLAIN ignores graphmod styling:
2669 2669
2670 2670 $ HGPLAIN=1 hg log -G -r 'file("a")' -m
2671 2671 @ changeset: 36:08a19a744424
2672 2672 | branch: branch
2673 2673 | tag: tip
2674 2674 | parent: 35:9159c3644c5e
2675 2675 | parent: 35:9159c3644c5e
2676 2676 | user: test
2677 2677 | date: Thu Jan 01 00:00:36 1970 +0000
2678 2678 | summary: (36) buggy merge: identical parents
2679 2679 |
2680 2680 o changeset: 32:d06dffa21a31
2681 2681 |\ parent: 27:886ed638191b
2682 2682 | | parent: 31:621d83e11f67
2683 2683 | | user: test
2684 2684 | | date: Thu Jan 01 00:00:32 1970 +0000
2685 2685 | | summary: (32) expand
2686 2686 | |
2687 2687 o | changeset: 31:621d83e11f67
2688 2688 |\| parent: 21:d42a756af44d
2689 2689 | | parent: 30:6e11cd4b648f
2690 2690 | | user: test
2691 2691 | | date: Thu Jan 01 00:00:31 1970 +0000
2692 2692 | | summary: (31) expand
2693 2693 | |
2694 2694 o | changeset: 30:6e11cd4b648f
2695 2695 |\ \ parent: 28:44ecd0b9ae99
2696 2696 | | | parent: 29:cd9bb2be7593
2697 2697 | | | user: test
2698 2698 | | | date: Thu Jan 01 00:00:30 1970 +0000
2699 2699 | | | summary: (30) expand
2700 2700 | | |
2701 2701 o | | changeset: 28:44ecd0b9ae99
2702 2702 |\ \ \ parent: 1:6db2ef61d156
2703 2703 | | | | parent: 26:7f25b6c2f0b9
2704 2704 | | | | user: test
2705 2705 | | | | date: Thu Jan 01 00:00:28 1970 +0000
2706 2706 | | | | summary: (28) merge zero known
2707 2707 | | | |
2708 2708 o | | | changeset: 26:7f25b6c2f0b9
2709 2709 |\ \ \ \ parent: 18:1aa84d96232a
2710 2710 | | | | | parent: 25:91da8ed57247
2711 2711 | | | | | user: test
2712 2712 | | | | | date: Thu Jan 01 00:00:26 1970 +0000
2713 2713 | | | | | summary: (26) merge one known; far right
2714 2714 | | | | |
2715 2715 | o-----+ changeset: 25:91da8ed57247
2716 2716 | | | | | parent: 21:d42a756af44d
2717 2717 | | | | | parent: 24:a9c19a3d96b7
2718 2718 | | | | | user: test
2719 2719 | | | | | date: Thu Jan 01 00:00:25 1970 +0000
2720 2720 | | | | | summary: (25) merge one known; far left
2721 2721 | | | | |
2722 2722 | o | | | changeset: 24:a9c19a3d96b7
2723 2723 | |\ \ \ \ parent: 0:e6eb3150255d
2724 2724 | | | | | | parent: 23:a01cddf0766d
2725 2725 | | | | | | user: test
2726 2726 | | | | | | date: Thu Jan 01 00:00:24 1970 +0000
2727 2727 | | | | | | summary: (24) merge one known; immediate right
2728 2728 | | | | | |
2729 2729 | o---+ | | changeset: 23:a01cddf0766d
2730 2730 | | | | | | parent: 1:6db2ef61d156
2731 2731 | | | | | | parent: 22:e0d9cccacb5d
2732 2732 | | | | | | user: test
2733 2733 | | | | | | date: Thu Jan 01 00:00:23 1970 +0000
2734 2734 | | | | | | summary: (23) merge one known; immediate left
2735 2735 | | | | | |
2736 2736 | o-------+ changeset: 22:e0d9cccacb5d
2737 2737 | | | | | | parent: 18:1aa84d96232a
2738 2738 |/ / / / / parent: 21:d42a756af44d
2739 2739 | | | | | user: test
2740 2740 | | | | | date: Thu Jan 01 00:00:22 1970 +0000
2741 2741 | | | | | summary: (22) merge two known; one far left, one far right
2742 2742 | | | | |
2743 2743 | | | | o changeset: 21:d42a756af44d
2744 2744 | | | | |\ parent: 19:31ddc2c1573b
2745 2745 | | | | | | parent: 20:d30ed6450e32
2746 2746 | | | | | | user: test
2747 2747 | | | | | | date: Thu Jan 01 00:00:21 1970 +0000
2748 2748 | | | | | | summary: (21) expand
2749 2749 | | | | | |
2750 2750 +-+-------o changeset: 20:d30ed6450e32
2751 2751 | | | | | parent: 0:e6eb3150255d
2752 2752 | | | | | parent: 18:1aa84d96232a
2753 2753 | | | | | user: test
2754 2754 | | | | | date: Thu Jan 01 00:00:20 1970 +0000
2755 2755 | | | | | summary: (20) merge two known; two far right
2756 2756 | | | | |
2757 2757 | | | | o changeset: 19:31ddc2c1573b
2758 2758 | | | | |\ parent: 15:1dda3f72782d
2759 2759 | | | | | | parent: 17:44765d7c06e0
2760 2760 | | | | | | user: test
2761 2761 | | | | | | date: Thu Jan 01 00:00:19 1970 +0000
2762 2762 | | | | | | summary: (19) expand
2763 2763 | | | | | |
2764 2764 o---+---+ | changeset: 18:1aa84d96232a
2765 2765 | | | | | parent: 1:6db2ef61d156
2766 2766 / / / / / parent: 15:1dda3f72782d
2767 2767 | | | | | user: test
2768 2768 | | | | | date: Thu Jan 01 00:00:18 1970 +0000
2769 2769 | | | | | summary: (18) merge two known; two far left
2770 2770 | | | | |
2771 2771 | | | | o changeset: 17:44765d7c06e0
2772 2772 | | | | |\ parent: 12:86b91144a6e9
2773 2773 | | | | | | parent: 16:3677d192927d
2774 2774 | | | | | | user: test
2775 2775 | | | | | | date: Thu Jan 01 00:00:17 1970 +0000
2776 2776 | | | | | | summary: (17) expand
2777 2777 | | | | | |
2778 2778 +-+-------o changeset: 16:3677d192927d
2779 2779 | | | | | parent: 0:e6eb3150255d
2780 2780 | | | | | parent: 1:6db2ef61d156
2781 2781 | | | | | user: test
2782 2782 | | | | | date: Thu Jan 01 00:00:16 1970 +0000
2783 2783 | | | | | summary: (16) merge two known; one immediate right, one near right
2784 2784 | | | | |
2785 2785 | | | o | changeset: 15:1dda3f72782d
2786 2786 | | | |\ \ parent: 13:22d8966a97e3
2787 2787 | | | | | | parent: 14:8eac370358ef
2788 2788 | | | | | | user: test
2789 2789 | | | | | | date: Thu Jan 01 00:00:15 1970 +0000
2790 2790 | | | | | | summary: (15) expand
2791 2791 | | | | | |
2792 2792 +-------o | changeset: 14:8eac370358ef
2793 2793 | | | | |/ parent: 0:e6eb3150255d
2794 2794 | | | | | parent: 12:86b91144a6e9
2795 2795 | | | | | user: test
2796 2796 | | | | | date: Thu Jan 01 00:00:14 1970 +0000
2797 2797 | | | | | summary: (14) merge two known; one immediate right, one far right
2798 2798 | | | | |
2799 2799 | | | o | changeset: 13:22d8966a97e3
2800 2800 | | | |\ \ parent: 9:7010c0af0a35
2801 2801 | | | | | | parent: 11:832d76e6bdf2
2802 2802 | | | | | | user: test
2803 2803 | | | | | | date: Thu Jan 01 00:00:13 1970 +0000
2804 2804 | | | | | | summary: (13) expand
2805 2805 | | | | | |
2806 2806 | +---+---o changeset: 12:86b91144a6e9
2807 2807 | | | | | parent: 1:6db2ef61d156
2808 2808 | | | | | parent: 9:7010c0af0a35
2809 2809 | | | | | user: test
2810 2810 | | | | | date: Thu Jan 01 00:00:12 1970 +0000
2811 2811 | | | | | summary: (12) merge two known; one immediate right, one far left
2812 2812 | | | | |
2813 2813 | | | | o changeset: 11:832d76e6bdf2
2814 2814 | | | | |\ parent: 6:b105a072e251
2815 2815 | | | | | | parent: 10:74c64d036d72
2816 2816 | | | | | | user: test
2817 2817 | | | | | | date: Thu Jan 01 00:00:11 1970 +0000
2818 2818 | | | | | | summary: (11) expand
2819 2819 | | | | | |
2820 2820 +---------o changeset: 10:74c64d036d72
2821 2821 | | | | |/ parent: 0:e6eb3150255d
2822 2822 | | | | | parent: 6:b105a072e251
2823 2823 | | | | | user: test
2824 2824 | | | | | date: Thu Jan 01 00:00:10 1970 +0000
2825 2825 | | | | | summary: (10) merge two known; one immediate left, one near right
2826 2826 | | | | |
2827 2827 | | | o | changeset: 9:7010c0af0a35
2828 2828 | | | |\ \ parent: 7:b632bb1b1224
2829 2829 | | | | | | parent: 8:7a0b11f71937
2830 2830 | | | | | | user: test
2831 2831 | | | | | | date: Thu Jan 01 00:00:09 1970 +0000
2832 2832 | | | | | | summary: (9) expand
2833 2833 | | | | | |
2834 2834 +-------o | changeset: 8:7a0b11f71937
2835 2835 | | | |/ / parent: 0:e6eb3150255d
2836 2836 | | | | | parent: 7:b632bb1b1224
2837 2837 | | | | | user: test
2838 2838 | | | | | date: Thu Jan 01 00:00:08 1970 +0000
2839 2839 | | | | | summary: (8) merge two known; one immediate left, one far right
2840 2840 | | | | |
2841 2841 | | | o | changeset: 7:b632bb1b1224
2842 2842 | | | |\ \ parent: 2:3d9a33b8d1e1
2843 2843 | | | | | | parent: 5:4409d547b708
2844 2844 | | | | | | user: test
2845 2845 | | | | | | date: Thu Jan 01 00:00:07 1970 +0000
2846 2846 | | | | | | summary: (7) expand
2847 2847 | | | | | |
2848 2848 | | | +---o changeset: 6:b105a072e251
2849 2849 | | | | |/ parent: 2:3d9a33b8d1e1
2850 2850 | | | | | parent: 5:4409d547b708
2851 2851 | | | | | user: test
2852 2852 | | | | | date: Thu Jan 01 00:00:06 1970 +0000
2853 2853 | | | | | summary: (6) merge two known; one immediate left, one far left
2854 2854 | | | | |
2855 2855 | | | o | changeset: 5:4409d547b708
2856 2856 | | | |\ \ parent: 3:27eef8ed80b4
2857 2857 | | | | | | parent: 4:26a8bac39d9f
2858 2858 | | | | | | user: test
2859 2859 | | | | | | date: Thu Jan 01 00:00:05 1970 +0000
2860 2860 | | | | | | summary: (5) expand
2861 2861 | | | | | |
2862 2862 | +---o | | changeset: 4:26a8bac39d9f
2863 2863 | | | |/ / parent: 1:6db2ef61d156
2864 2864 | | | | | parent: 3:27eef8ed80b4
2865 2865 | | | | | user: test
2866 2866 | | | | | date: Thu Jan 01 00:00:04 1970 +0000
2867 2867 | | | | | summary: (4) merge two known; one immediate left, one immediate right
2868 2868 | | | | |
2869 2869
2870 2870 .. unless HGPLAINEXCEPT=graph is set:
2871 2871
2872 2872 $ HGPLAIN=1 HGPLAINEXCEPT=graph hg log -G -r 'file("a")' -m
2873 2873 @ changeset: 36:08a19a744424
2874 2874 : branch: branch
2875 2875 : tag: tip
2876 2876 : parent: 35:9159c3644c5e
2877 2877 : parent: 35:9159c3644c5e
2878 2878 : user: test
2879 2879 : date: Thu Jan 01 00:00:36 1970 +0000
2880 2880 : summary: (36) buggy merge: identical parents
2881 2881 :
2882 2882 o changeset: 32:d06dffa21a31
2883 2883 |\ parent: 27:886ed638191b
2884 2884 | : parent: 31:621d83e11f67
2885 2885 | : user: test
2886 2886 | : date: Thu Jan 01 00:00:32 1970 +0000
2887 2887 | : summary: (32) expand
2888 2888 | :
2889 2889 o : changeset: 31:621d83e11f67
2890 2890 |\: parent: 21:d42a756af44d
2891 2891 | : parent: 30:6e11cd4b648f
2892 2892 | : user: test
2893 2893 | : date: Thu Jan 01 00:00:31 1970 +0000
2894 2894 | : summary: (31) expand
2895 2895 | :
2896 2896 o : changeset: 30:6e11cd4b648f
2897 2897 |\ \ parent: 28:44ecd0b9ae99
2898 2898 | ~ : parent: 29:cd9bb2be7593
2899 2899 | : user: test
2900 2900 | : date: Thu Jan 01 00:00:30 1970 +0000
2901 2901 | : summary: (30) expand
2902 2902 | /
2903 2903 o : changeset: 28:44ecd0b9ae99
2904 2904 |\ \ parent: 1:6db2ef61d156
2905 2905 | ~ : parent: 26:7f25b6c2f0b9
2906 2906 | : user: test
2907 2907 | : date: Thu Jan 01 00:00:28 1970 +0000
2908 2908 | : summary: (28) merge zero known
2909 2909 | /
2910 2910 o : changeset: 26:7f25b6c2f0b9
2911 2911 |\ \ parent: 18:1aa84d96232a
2912 2912 | | : parent: 25:91da8ed57247
2913 2913 | | : user: test
2914 2914 | | : date: Thu Jan 01 00:00:26 1970 +0000
2915 2915 | | : summary: (26) merge one known; far right
2916 2916 | | :
2917 2917 | o : changeset: 25:91da8ed57247
2918 2918 | |\: parent: 21:d42a756af44d
2919 2919 | | : parent: 24:a9c19a3d96b7
2920 2920 | | : user: test
2921 2921 | | : date: Thu Jan 01 00:00:25 1970 +0000
2922 2922 | | : summary: (25) merge one known; far left
2923 2923 | | :
2924 2924 | o : changeset: 24:a9c19a3d96b7
2925 2925 | |\ \ parent: 0:e6eb3150255d
2926 2926 | | ~ : parent: 23:a01cddf0766d
2927 2927 | | : user: test
2928 2928 | | : date: Thu Jan 01 00:00:24 1970 +0000
2929 2929 | | : summary: (24) merge one known; immediate right
2930 2930 | | /
2931 2931 | o : changeset: 23:a01cddf0766d
2932 2932 | |\ \ parent: 1:6db2ef61d156
2933 2933 | | ~ : parent: 22:e0d9cccacb5d
2934 2934 | | : user: test
2935 2935 | | : date: Thu Jan 01 00:00:23 1970 +0000
2936 2936 | | : summary: (23) merge one known; immediate left
2937 2937 | | /
2938 2938 | o : changeset: 22:e0d9cccacb5d
2939 2939 |/:/ parent: 18:1aa84d96232a
2940 2940 | : parent: 21:d42a756af44d
2941 2941 | : user: test
2942 2942 | : date: Thu Jan 01 00:00:22 1970 +0000
2943 2943 | : summary: (22) merge two known; one far left, one far right
2944 2944 | :
2945 2945 | o changeset: 21:d42a756af44d
2946 2946 | |\ parent: 19:31ddc2c1573b
2947 2947 | | | parent: 20:d30ed6450e32
2948 2948 | | | user: test
2949 2949 | | | date: Thu Jan 01 00:00:21 1970 +0000
2950 2950 | | | summary: (21) expand
2951 2951 | | |
2952 2952 +---o changeset: 20:d30ed6450e32
2953 2953 | | | parent: 0:e6eb3150255d
2954 2954 | | ~ parent: 18:1aa84d96232a
2955 2955 | | user: test
2956 2956 | | date: Thu Jan 01 00:00:20 1970 +0000
2957 2957 | | summary: (20) merge two known; two far right
2958 2958 | |
2959 2959 | o changeset: 19:31ddc2c1573b
2960 2960 | |\ parent: 15:1dda3f72782d
2961 2961 | | | parent: 17:44765d7c06e0
2962 2962 | | | user: test
2963 2963 | | | date: Thu Jan 01 00:00:19 1970 +0000
2964 2964 | | | summary: (19) expand
2965 2965 | | |
2966 2966 o | | changeset: 18:1aa84d96232a
2967 2967 |\| | parent: 1:6db2ef61d156
2968 2968 ~ | | parent: 15:1dda3f72782d
2969 2969 | | user: test
2970 2970 | | date: Thu Jan 01 00:00:18 1970 +0000
2971 2971 | | summary: (18) merge two known; two far left
2972 2972 / /
2973 2973 | o changeset: 17:44765d7c06e0
2974 2974 | |\ parent: 12:86b91144a6e9
2975 2975 | | | parent: 16:3677d192927d
2976 2976 | | | user: test
2977 2977 | | | date: Thu Jan 01 00:00:17 1970 +0000
2978 2978 | | | summary: (17) expand
2979 2979 | | |
2980 2980 | | o changeset: 16:3677d192927d
2981 2981 | | |\ parent: 0:e6eb3150255d
2982 2982 | | ~ ~ parent: 1:6db2ef61d156
2983 2983 | | user: test
2984 2984 | | date: Thu Jan 01 00:00:16 1970 +0000
2985 2985 | | summary: (16) merge two known; one immediate right, one near right
2986 2986 | |
2987 2987 o | changeset: 15:1dda3f72782d
2988 2988 |\ \ parent: 13:22d8966a97e3
2989 2989 | | | parent: 14:8eac370358ef
2990 2990 | | | user: test
2991 2991 | | | date: Thu Jan 01 00:00:15 1970 +0000
2992 2992 | | | summary: (15) expand
2993 2993 | | |
2994 2994 | o | changeset: 14:8eac370358ef
2995 2995 | |\| parent: 0:e6eb3150255d
2996 2996 | ~ | parent: 12:86b91144a6e9
2997 2997 | | user: test
2998 2998 | | date: Thu Jan 01 00:00:14 1970 +0000
2999 2999 | | summary: (14) merge two known; one immediate right, one far right
3000 3000 | /
3001 3001 o | changeset: 13:22d8966a97e3
3002 3002 |\ \ parent: 9:7010c0af0a35
3003 3003 | | | parent: 11:832d76e6bdf2
3004 3004 | | | user: test
3005 3005 | | | date: Thu Jan 01 00:00:13 1970 +0000
3006 3006 | | | summary: (13) expand
3007 3007 | | |
3008 3008 +---o changeset: 12:86b91144a6e9
3009 3009 | | | parent: 1:6db2ef61d156
3010 3010 | | ~ parent: 9:7010c0af0a35
3011 3011 | | user: test
3012 3012 | | date: Thu Jan 01 00:00:12 1970 +0000
3013 3013 | | summary: (12) merge two known; one immediate right, one far left
3014 3014 | |
3015 3015 | o changeset: 11:832d76e6bdf2
3016 3016 | |\ parent: 6:b105a072e251
3017 3017 | | | parent: 10:74c64d036d72
3018 3018 | | | user: test
3019 3019 | | | date: Thu Jan 01 00:00:11 1970 +0000
3020 3020 | | | summary: (11) expand
3021 3021 | | |
3022 3022 | | o changeset: 10:74c64d036d72
3023 3023 | |/| parent: 0:e6eb3150255d
3024 3024 | | ~ parent: 6:b105a072e251
3025 3025 | | user: test
3026 3026 | | date: Thu Jan 01 00:00:10 1970 +0000
3027 3027 | | summary: (10) merge two known; one immediate left, one near right
3028 3028 | |
3029 3029 o | changeset: 9:7010c0af0a35
3030 3030 |\ \ parent: 7:b632bb1b1224
3031 3031 | | | parent: 8:7a0b11f71937
3032 3032 | | | user: test
3033 3033 | | | date: Thu Jan 01 00:00:09 1970 +0000
3034 3034 | | | summary: (9) expand
3035 3035 | | |
3036 3036 | o | changeset: 8:7a0b11f71937
3037 3037 |/| | parent: 0:e6eb3150255d
3038 3038 | ~ | parent: 7:b632bb1b1224
3039 3039 | | user: test
3040 3040 | | date: Thu Jan 01 00:00:08 1970 +0000
3041 3041 | | summary: (8) merge two known; one immediate left, one far right
3042 3042 | /
3043 3043 o | changeset: 7:b632bb1b1224
3044 3044 |\ \ parent: 2:3d9a33b8d1e1
3045 3045 | ~ | parent: 5:4409d547b708
3046 3046 | | user: test
3047 3047 | | date: Thu Jan 01 00:00:07 1970 +0000
3048 3048 | | summary: (7) expand
3049 3049 | /
3050 3050 | o changeset: 6:b105a072e251
3051 3051 |/| parent: 2:3d9a33b8d1e1
3052 3052 | ~ parent: 5:4409d547b708
3053 3053 | user: test
3054 3054 | date: Thu Jan 01 00:00:06 1970 +0000
3055 3055 | summary: (6) merge two known; one immediate left, one far left
3056 3056 |
3057 3057 o changeset: 5:4409d547b708
3058 3058 |\ parent: 3:27eef8ed80b4
3059 3059 | ~ parent: 4:26a8bac39d9f
3060 3060 | user: test
3061 3061 | date: Thu Jan 01 00:00:05 1970 +0000
3062 3062 | summary: (5) expand
3063 3063 |
3064 3064 o changeset: 4:26a8bac39d9f
3065 3065 |\ parent: 1:6db2ef61d156
3066 3066 ~ ~ parent: 3:27eef8ed80b4
3067 3067 user: test
3068 3068 date: Thu Jan 01 00:00:04 1970 +0000
3069 3069 summary: (4) merge two known; one immediate left, one immediate right
3070 3070
3071 3071 Draw only part of a grandparent line differently with "<N><char>"; only the
3072 3072 last N lines (for positive N) or everything but the first N lines (for
3073 3073 negative N) along the current node use the style, the rest of the edge uses
3074 3074 the parent edge styling.
3075 3075
3076 3076 Last 3 lines:
3077 3077
3078 3078 $ cat << EOF >> $HGRCPATH
3079 3079 > [experimental]
3080 3080 > graphstyle.parent = !
3081 3081 > graphstyle.grandparent = 3.
3082 3082 > graphstyle.missing =
3083 3083 > EOF
3084 3084 $ hg log -G -r '36:18 & file("a")' -m
3085 3085 @ changeset: 36:08a19a744424
3086 3086 ! branch: branch
3087 3087 ! tag: tip
3088 3088 ! parent: 35:9159c3644c5e
3089 3089 ! parent: 35:9159c3644c5e
3090 3090 ! user: test
3091 3091 . date: Thu Jan 01 00:00:36 1970 +0000
3092 3092 . summary: (36) buggy merge: identical parents
3093 3093 .
3094 3094 o changeset: 32:d06dffa21a31
3095 3095 !\ parent: 27:886ed638191b
3096 3096 ! ! parent: 31:621d83e11f67
3097 3097 ! ! user: test
3098 3098 ! . date: Thu Jan 01 00:00:32 1970 +0000
3099 3099 ! . summary: (32) expand
3100 3100 ! .
3101 3101 o ! changeset: 31:621d83e11f67
3102 3102 !\! parent: 21:d42a756af44d
3103 3103 ! ! parent: 30:6e11cd4b648f
3104 3104 ! ! user: test
3105 3105 ! ! date: Thu Jan 01 00:00:31 1970 +0000
3106 3106 ! ! summary: (31) expand
3107 3107 ! !
3108 3108 o ! changeset: 30:6e11cd4b648f
3109 3109 !\ \ parent: 28:44ecd0b9ae99
3110 3110 ! ~ ! parent: 29:cd9bb2be7593
3111 3111 ! ! user: test
3112 3112 ! ! date: Thu Jan 01 00:00:30 1970 +0000
3113 3113 ! ! summary: (30) expand
3114 3114 ! /
3115 3115 o ! changeset: 28:44ecd0b9ae99
3116 3116 !\ \ parent: 1:6db2ef61d156
3117 3117 ! ~ ! parent: 26:7f25b6c2f0b9
3118 3118 ! ! user: test
3119 3119 ! ! date: Thu Jan 01 00:00:28 1970 +0000
3120 3120 ! ! summary: (28) merge zero known
3121 3121 ! /
3122 3122 o ! changeset: 26:7f25b6c2f0b9
3123 3123 !\ \ parent: 18:1aa84d96232a
3124 3124 ! ! ! parent: 25:91da8ed57247
3125 3125 ! ! ! user: test
3126 3126 ! ! ! date: Thu Jan 01 00:00:26 1970 +0000
3127 3127 ! ! ! summary: (26) merge one known; far right
3128 3128 ! ! !
3129 3129 ! o ! changeset: 25:91da8ed57247
3130 3130 ! !\! parent: 21:d42a756af44d
3131 3131 ! ! ! parent: 24:a9c19a3d96b7
3132 3132 ! ! ! user: test
3133 3133 ! ! ! date: Thu Jan 01 00:00:25 1970 +0000
3134 3134 ! ! ! summary: (25) merge one known; far left
3135 3135 ! ! !
3136 3136 ! o ! changeset: 24:a9c19a3d96b7
3137 3137 ! !\ \ parent: 0:e6eb3150255d
3138 3138 ! ! ~ ! parent: 23:a01cddf0766d
3139 3139 ! ! ! user: test
3140 3140 ! ! ! date: Thu Jan 01 00:00:24 1970 +0000
3141 3141 ! ! ! summary: (24) merge one known; immediate right
3142 3142 ! ! /
3143 3143 ! o ! changeset: 23:a01cddf0766d
3144 3144 ! !\ \ parent: 1:6db2ef61d156
3145 3145 ! ! ~ ! parent: 22:e0d9cccacb5d
3146 3146 ! ! ! user: test
3147 3147 ! ! ! date: Thu Jan 01 00:00:23 1970 +0000
3148 3148 ! ! ! summary: (23) merge one known; immediate left
3149 3149 ! ! /
3150 3150 ! o ! changeset: 22:e0d9cccacb5d
3151 3151 !/!/ parent: 18:1aa84d96232a
3152 3152 ! ! parent: 21:d42a756af44d
3153 3153 ! ! user: test
3154 3154 ! ! date: Thu Jan 01 00:00:22 1970 +0000
3155 3155 ! ! summary: (22) merge two known; one far left, one far right
3156 3156 ! !
3157 3157 ! o changeset: 21:d42a756af44d
3158 3158 ! !\ parent: 19:31ddc2c1573b
3159 3159 ! ! ! parent: 20:d30ed6450e32
3160 3160 ! ! ! user: test
3161 3161 ! ! ! date: Thu Jan 01 00:00:21 1970 +0000
3162 3162 ! ! ! summary: (21) expand
3163 3163 ! ! !
3164 3164 +---o changeset: 20:d30ed6450e32
3165 3165 ! ! | parent: 0:e6eb3150255d
3166 3166 ! ! ~ parent: 18:1aa84d96232a
3167 3167 ! ! user: test
3168 3168 ! ! date: Thu Jan 01 00:00:20 1970 +0000
3169 3169 ! ! summary: (20) merge two known; two far right
3170 3170 ! !
3171 3171 ! o changeset: 19:31ddc2c1573b
3172 3172 ! |\ parent: 15:1dda3f72782d
3173 3173 ! ~ ~ parent: 17:44765d7c06e0
3174 3174 ! user: test
3175 3175 ! date: Thu Jan 01 00:00:19 1970 +0000
3176 3176 ! summary: (19) expand
3177 3177 !
3178 3178 o changeset: 18:1aa84d96232a
3179 3179 |\ parent: 1:6db2ef61d156
3180 3180 ~ ~ parent: 15:1dda3f72782d
3181 3181 user: test
3182 3182 date: Thu Jan 01 00:00:18 1970 +0000
3183 3183 summary: (18) merge two known; two far left
3184 3184
3185 3185 All but the first 3 lines:
3186 3186
3187 3187 $ cat << EOF >> $HGRCPATH
3188 3188 > [experimental]
3189 3189 > graphstyle.parent = !
3190 3190 > graphstyle.grandparent = -3.
3191 3191 > graphstyle.missing =
3192 3192 > EOF
3193 3193 $ hg log -G -r '36:18 & file("a")' -m
3194 3194 @ changeset: 36:08a19a744424
3195 3195 ! branch: branch
3196 3196 ! tag: tip
3197 3197 . parent: 35:9159c3644c5e
3198 3198 . parent: 35:9159c3644c5e
3199 3199 . user: test
3200 3200 . date: Thu Jan 01 00:00:36 1970 +0000
3201 3201 . summary: (36) buggy merge: identical parents
3202 3202 .
3203 3203 o changeset: 32:d06dffa21a31
3204 3204 !\ parent: 27:886ed638191b
3205 3205 ! ! parent: 31:621d83e11f67
3206 3206 ! . user: test
3207 3207 ! . date: Thu Jan 01 00:00:32 1970 +0000
3208 3208 ! . summary: (32) expand
3209 3209 ! .
3210 3210 o ! changeset: 31:621d83e11f67
3211 3211 !\! parent: 21:d42a756af44d
3212 3212 ! ! parent: 30:6e11cd4b648f
3213 3213 ! ! user: test
3214 3214 ! ! date: Thu Jan 01 00:00:31 1970 +0000
3215 3215 ! ! summary: (31) expand
3216 3216 ! !
3217 3217 o ! changeset: 30:6e11cd4b648f
3218 3218 !\ \ parent: 28:44ecd0b9ae99
3219 3219 ! ~ ! parent: 29:cd9bb2be7593
3220 3220 ! ! user: test
3221 3221 ! ! date: Thu Jan 01 00:00:30 1970 +0000
3222 3222 ! ! summary: (30) expand
3223 3223 ! /
3224 3224 o ! changeset: 28:44ecd0b9ae99
3225 3225 !\ \ parent: 1:6db2ef61d156
3226 3226 ! ~ ! parent: 26:7f25b6c2f0b9
3227 3227 ! ! user: test
3228 3228 ! ! date: Thu Jan 01 00:00:28 1970 +0000
3229 3229 ! ! summary: (28) merge zero known
3230 3230 ! /
3231 3231 o ! changeset: 26:7f25b6c2f0b9
3232 3232 !\ \ parent: 18:1aa84d96232a
3233 3233 ! ! ! parent: 25:91da8ed57247
3234 3234 ! ! ! user: test
3235 3235 ! ! ! date: Thu Jan 01 00:00:26 1970 +0000
3236 3236 ! ! ! summary: (26) merge one known; far right
3237 3237 ! ! !
3238 3238 ! o ! changeset: 25:91da8ed57247
3239 3239 ! !\! parent: 21:d42a756af44d
3240 3240 ! ! ! parent: 24:a9c19a3d96b7
3241 3241 ! ! ! user: test
3242 3242 ! ! ! date: Thu Jan 01 00:00:25 1970 +0000
3243 3243 ! ! ! summary: (25) merge one known; far left
3244 3244 ! ! !
3245 3245 ! o ! changeset: 24:a9c19a3d96b7
3246 3246 ! !\ \ parent: 0:e6eb3150255d
3247 3247 ! ! ~ ! parent: 23:a01cddf0766d
3248 3248 ! ! ! user: test
3249 3249 ! ! ! date: Thu Jan 01 00:00:24 1970 +0000
3250 3250 ! ! ! summary: (24) merge one known; immediate right
3251 3251 ! ! /
3252 3252 ! o ! changeset: 23:a01cddf0766d
3253 3253 ! !\ \ parent: 1:6db2ef61d156
3254 3254 ! ! ~ ! parent: 22:e0d9cccacb5d
3255 3255 ! ! ! user: test
3256 3256 ! ! ! date: Thu Jan 01 00:00:23 1970 +0000
3257 3257 ! ! ! summary: (23) merge one known; immediate left
3258 3258 ! ! /
3259 3259 ! o ! changeset: 22:e0d9cccacb5d
3260 3260 !/!/ parent: 18:1aa84d96232a
3261 3261 ! ! parent: 21:d42a756af44d
3262 3262 ! ! user: test
3263 3263 ! ! date: Thu Jan 01 00:00:22 1970 +0000
3264 3264 ! ! summary: (22) merge two known; one far left, one far right
3265 3265 ! !
3266 3266 ! o changeset: 21:d42a756af44d
3267 3267 ! !\ parent: 19:31ddc2c1573b
3268 3268 ! ! ! parent: 20:d30ed6450e32
3269 3269 ! ! ! user: test
3270 3270 ! ! ! date: Thu Jan 01 00:00:21 1970 +0000
3271 3271 ! ! ! summary: (21) expand
3272 3272 ! ! !
3273 3273 +---o changeset: 20:d30ed6450e32
3274 3274 ! ! | parent: 0:e6eb3150255d
3275 3275 ! ! ~ parent: 18:1aa84d96232a
3276 3276 ! ! user: test
3277 3277 ! ! date: Thu Jan 01 00:00:20 1970 +0000
3278 3278 ! ! summary: (20) merge two known; two far right
3279 3279 ! !
3280 3280 ! o changeset: 19:31ddc2c1573b
3281 3281 ! |\ parent: 15:1dda3f72782d
3282 3282 ! ~ ~ parent: 17:44765d7c06e0
3283 3283 ! user: test
3284 3284 ! date: Thu Jan 01 00:00:19 1970 +0000
3285 3285 ! summary: (19) expand
3286 3286 !
3287 3287 o changeset: 18:1aa84d96232a
3288 3288 |\ parent: 1:6db2ef61d156
3289 3289 ~ ~ parent: 15:1dda3f72782d
3290 3290 user: test
3291 3291 date: Thu Jan 01 00:00:18 1970 +0000
3292 3292 summary: (18) merge two known; two far left
3293 3293
3294 3294 $ cd ..
3295 3295
3296 3296 Change graph shorten, test better with graphstyle.missing not none
3297 3297
3298 3298 $ cd repo
3299 3299 $ cat << EOF >> $HGRCPATH
3300 3300 > [experimental]
3301 3301 > graphstyle.parent = |
3302 3302 > graphstyle.grandparent = :
3303 3303 > graphstyle.missing = '
3304 3304 > graphshorten = true
3305 3305 > EOF
3306 3306 $ hg log -G -r 'file("a")' -m -T '{rev} {desc}'
3307 3307 @ 36 (36) buggy merge: identical parents
3308 3308 o 32 (32) expand
3309 3309 |\
3310 3310 o : 31 (31) expand
3311 3311 |\:
3312 3312 o : 30 (30) expand
3313 3313 |\ \
3314 3314 o \ \ 28 (28) merge zero known
3315 3315 |\ \ \
3316 3316 o \ \ \ 26 (26) merge one known; far right
3317 3317 |\ \ \ \
3318 3318 | o-----+ 25 (25) merge one known; far left
3319 3319 | o ' ' : 24 (24) merge one known; immediate right
3320 3320 | |\ \ \ \
3321 3321 | o---+ ' : 23 (23) merge one known; immediate left
3322 3322 | o-------+ 22 (22) merge two known; one far left, one far right
3323 3323 |/ / / / /
3324 3324 | ' ' ' o 21 (21) expand
3325 3325 | ' ' ' |\
3326 3326 +-+-------o 20 (20) merge two known; two far right
3327 3327 | ' ' ' o 19 (19) expand
3328 3328 | ' ' ' |\
3329 3329 o---+---+ | 18 (18) merge two known; two far left
3330 3330 / / / / /
3331 3331 ' ' ' | o 17 (17) expand
3332 3332 ' ' ' | |\
3333 3333 +-+-------o 16 (16) merge two known; one immediate right, one near right
3334 3334 ' ' ' o | 15 (15) expand
3335 3335 ' ' ' |\ \
3336 3336 +-------o | 14 (14) merge two known; one immediate right, one far right
3337 3337 ' ' ' | |/
3338 3338 ' ' ' o | 13 (13) expand
3339 3339 ' ' ' |\ \
3340 3340 ' +---+---o 12 (12) merge two known; one immediate right, one far left
3341 3341 ' ' ' | o 11 (11) expand
3342 3342 ' ' ' | |\
3343 3343 +---------o 10 (10) merge two known; one immediate left, one near right
3344 3344 ' ' ' | |/
3345 3345 ' ' ' o | 9 (9) expand
3346 3346 ' ' ' |\ \
3347 3347 +-------o | 8 (8) merge two known; one immediate left, one far right
3348 3348 ' ' ' |/ /
3349 3349 ' ' ' o | 7 (7) expand
3350 3350 ' ' ' |\ \
3351 3351 ' ' ' +---o 6 (6) merge two known; one immediate left, one far left
3352 3352 ' ' ' | '/
3353 3353 ' ' ' o ' 5 (5) expand
3354 3354 ' ' ' |\ \
3355 3355 ' +---o ' ' 4 (4) merge two known; one immediate left, one immediate right
3356 3356 ' ' ' '/ /
3357 3357
3358 3358 behavior with newlines
3359 3359
3360 3360 $ hg log -G -r ::2 -T '{rev} {desc}'
3361 3361 o 2 (2) collapse
3362 3362 o 1 (1) collapse
3363 3363 o 0 (0) root
3364 3364
3365 3365 $ hg log -G -r ::2 -T '{rev} {desc}\n'
3366 3366 o 2 (2) collapse
3367 3367 o 1 (1) collapse
3368 3368 o 0 (0) root
3369 3369
3370 3370 $ hg log -G -r ::2 -T '{rev} {desc}\n\n'
3371 3371 o 2 (2) collapse
3372 3372 |
3373 3373 o 1 (1) collapse
3374 3374 |
3375 3375 o 0 (0) root
3376 3376
3377 3377
3378 3378 $ hg log -G -r ::2 -T '\n{rev} {desc}'
3379 3379 o
3380 3380 | 2 (2) collapse
3381 3381 o
3382 3382 | 1 (1) collapse
3383 3383 o
3384 3384 0 (0) root
3385 3385
3386 3386 $ hg log -G -r ::2 -T '{rev} {desc}\n\n\n'
3387 3387 o 2 (2) collapse
3388 3388 |
3389 3389 |
3390 3390 o 1 (1) collapse
3391 3391 |
3392 3392 |
3393 3393 o 0 (0) root
3394 3394
3395 3395
3396 3396 $ cd ..
3397 3397
3398 3398 When inserting extra line nodes to handle more than 2 parents, ensure that
3399 3399 the right node styles are used (issue5174):
3400 3400
3401 3401 $ hg init repo-issue5174
3402 3402 $ cd repo-issue5174
3403 3403 $ echo a > f0
3404 3404 $ hg ci -Aqm 0
3405 3405 $ echo a > f1
3406 3406 $ hg ci -Aqm 1
3407 3407 $ echo a > f2
3408 3408 $ hg ci -Aqm 2
3409 3409 $ hg co ".^"
3410 3410 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
3411 3411 $ echo a > f3
3412 3412 $ hg ci -Aqm 3
3413 3413 $ hg co ".^^"
3414 3414 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
3415 3415 $ echo a > f4
3416 3416 $ hg ci -Aqm 4
3417 3417 $ hg merge -r 2
3418 3418 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
3419 3419 (branch merge, don't forget to commit)
3420 3420 $ hg ci -qm 5
3421 3421 $ hg merge -r 3
3422 3422 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
3423 3423 (branch merge, don't forget to commit)
3424 3424 $ hg ci -qm 6
3425 3425 $ hg log -G -r '0 | 1 | 2 | 6'
3426 3426 @ changeset: 6:851fe89689ad
3427 3427 :\ tag: tip
3428 3428 : : parent: 5:4f1e3cf15f5d
3429 3429 : : parent: 3:b74ba7084d2d
3430 3430 : : user: test
3431 3431 : : date: Thu Jan 01 00:00:00 1970 +0000
3432 3432 : : summary: 6
3433 3433 : :
3434 3434 : \
3435 3435 : :\
3436 3436 : o : changeset: 2:3e6599df4cce
3437 3437 : :/ user: test
3438 3438 : : date: Thu Jan 01 00:00:00 1970 +0000
3439 3439 : : summary: 2
3440 3440 : :
3441 3441 : o changeset: 1:bd9a55143933
3442 3442 :/ user: test
3443 3443 : date: Thu Jan 01 00:00:00 1970 +0000
3444 3444 : summary: 1
3445 3445 :
3446 3446 o changeset: 0:870a5edc339c
3447 3447 user: test
3448 3448 date: Thu Jan 01 00:00:00 1970 +0000
3449 3449 summary: 0
3450 3450
3451 3451
3452 3452 $ cd ..
3453 3453
3454 3454 Multiple roots (issue5440):
3455 3455
3456 3456 $ hg init multiroots
3457 3457 $ cd multiroots
3458 3458 $ cat <<EOF > .hg/hgrc
3459 3459 > [ui]
3460 3460 > logtemplate = '{rev} {desc}\n\n'
3461 3461 > EOF
3462 3462
3463 3463 $ touch foo
3464 3464 $ hg ci -Aqm foo
3465 3465 $ hg co -q null
3466 3466 $ touch bar
3467 3467 $ hg ci -Aqm bar
3468 3468
3469 3469 $ hg log -Gr null:
3470 3470 @ 1 bar
3471 3471 |
3472 3472 | o 0 foo
3473 3473 |/
3474 3474 o -1
3475 3475
3476 3476 $ hg log -Gr null+0
3477 3477 o 0 foo
3478 3478 |
3479 3479 o -1
3480 3480
3481 3481 $ hg log -Gr null+1
3482 3482 @ 1 bar
3483 3483 |
3484 3484 o -1
3485 3485
3486 3486
3487 3487 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now