comparison tests/test-evolve-obshistory.t @ 3398:d67e6080e11b

obslog: colorize the patch shown using `hg obslog -p` This patch adds color support to the patch shown in obslog command.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 10 Jan 2018 19:47:43 +0530
parents 1cb549cd6236
children 4adf46158b9b
comparison
equal deleted inserted replaced
3397:f7129e3d5a38 3398:d67e6080e11b
68 --- a/A0 Thu Jan 01 00:00:00 1970 +0000 68 --- a/A0 Thu Jan 01 00:00:00 1970 +0000
69 +++ b/A0 Thu Jan 01 00:00:00 1970 +0000 69 +++ b/A0 Thu Jan 01 00:00:00 1970 +0000
70 @@ -1,1 +1,2 @@ 70 @@ -1,1 +1,2 @@
71 A0 71 A0
72 +42 72 +42
73
74
75 $ hg obslog --patch --color debug
76 @ [evolve.node|4ae3a4151de9] [evolve.rev|(2)] [evolve.short_description|A1]
77 |
78 x [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
79 [evolve.verb|rewritten](description, content) as [evolve.node|4ae3a4151de9] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)]
80 --- a/471f378eab4c-changeset-description
81 +++ b/4ae3a4151de9-changeset-description
82 @@ -1,1 +1,3 @@
83 -A0
84 +A1
85 +
86 +Better commit message
87
88 [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0]
89 [diff.file_a|--- a/A0 Thu Jan 01 00:00:00 1970 +0000]
90 [diff.file_b|+++ b/A0 Thu Jan 01 00:00:00 1970 +0000]
91 [diff.hunk|@@ -1,1 +1,2 @@]
92 A0
93 [diff.inserted|+42]
73 94
74 95
75 96
76 $ hg obslog --no-graph --patch 4ae3a4151de9 97 $ hg obslog --no-graph --patch 4ae3a4151de9
77 4ae3a4151de9 (2) A1 98 4ae3a4151de9 (2) A1