Mercurial > evolve
diff 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 |
line wrap: on
line diff
--- a/tests/test-evolve-obshistory.t Wed Dec 27 04:09:50 2017 +0530 +++ b/tests/test-evolve-obshistory.t Wed Jan 10 19:47:43 2018 +0530 @@ -72,6 +72,27 @@ +42 + $ hg obslog --patch --color debug + @ [evolve.node|4ae3a4151de9] [evolve.rev|(2)] [evolve.short_description|A1] + | + x [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] + [evolve.verb|rewritten](description, content) as [evolve.node|4ae3a4151de9] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)] + --- a/471f378eab4c-changeset-description + +++ b/4ae3a4151de9-changeset-description + @@ -1,1 +1,3 @@ + -A0 + +A1 + + + +Better commit message + + [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0] + [diff.file_a|--- a/A0 Thu Jan 01 00:00:00 1970 +0000] + [diff.file_b|+++ b/A0 Thu Jan 01 00:00:00 1970 +0000] + [diff.hunk|@@ -1,1 +1,2 @@] + A0 + [diff.inserted|+42] + + $ hg obslog --no-graph --patch 4ae3a4151de9 4ae3a4151de9 (2) A1