comparison tests/test-absorb.t @ 40150:1be1689d9ce9

absorb: print '{rev}:' as a prefix to the hash I don't see a sane way to print the summary to identify the changed commit, but this at least makes it a bit easier to identify a commit when a group of them changes.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Oct 2018 22:39:11 -0400
parents ab452995eaff
children 2c5316796f45
comparison
equal deleted inserted replaced
40149:9b0cdfb3c11e 40150:1be1689d9ce9
392 @@ -1,3 +1,0 @@ 392 @@ -1,3 +1,0 @@
393 1154859 -2 393 1154859 -2
394 30970db -3 394 30970db -3
395 a393a58 -4 395 a393a58 -4
396 $ hg absorb -v | grep became 396 $ hg absorb -v | grep became
397 bfafb49242db: 1 file(s) changed, became 1a2de97fc652 397 0:bfafb49242db: 1 file(s) changed, became 4:1a2de97fc652
398 115485984805: 2 file(s) changed, became 0c930dfab74c 398 1:115485984805: 2 file(s) changed, became 5:0c930dfab74c
399 30970dbf7b40: became empty and was dropped 399 2:30970dbf7b40: became empty and was dropped
400 a393a58b9a85: became empty and was dropped 400 3:a393a58b9a85: became empty and was dropped
401 $ hg log -T '{rev} {desc}\n' -Gp 401 $ hg log -T '{rev} {desc}\n' -Gp
402 @ 5 b12 402 @ 5 b12
403 | diff --git a/b b/b 403 | diff --git a/b b/b
404 | new file mode 100644 404 | new file mode 100644
405 | --- /dev/null 405 | --- /dev/null
442 showing changes for a 442 showing changes for a
443 @@ -2,2 +2,0 @@ 443 @@ -2,2 +2,0 @@
444 f1c23dd -3 444 f1c23dd -3
445 82dbe7f -4 445 82dbe7f -4
446 $ hg absorb --verbose 446 $ hg absorb --verbose
447 f1c23dd5d08d: became empty and was dropped 447 1:f1c23dd5d08d: became empty and was dropped
448 82dbe7fd19f0: became empty and was dropped 448 2:82dbe7fd19f0: became empty and was dropped
449 a: 1 of 1 chunk(s) applied 449 a: 1 of 1 chunk(s) applied
450 $ hg id 450 $ hg id
451 bfafb49242db tip 451 bfafb49242db tip