changeset 2396:c1485ebdd6b9

color: update the shorttemplate to use colors
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 May 2017 09:28:10 +0200
parents 5774c27ce927
children 77e3c8ab44eb
files hgext3rd/evolve/__init__.py tests/test-prev-next.t
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py	Wed May 17 14:49:02 2017 +0200
+++ b/hgext3rd/evolve/__init__.py	Wed May 17 09:28:10 2017 +0200
@@ -1890,7 +1890,7 @@
     raise error.Abort("base of divergent changeset %s not found" % ctx,
                       hint='this case is not yet handled')
 
-shorttemplate = '[{rev}] {desc|firstline}\n'
+shorttemplate = "[{label('evolve.rev', rev)}] {desc|firstline}\n"
 
 @eh.command(
     '^previous',
--- a/tests/test-prev-next.t	Wed May 17 14:49:02 2017 +0200
+++ b/tests/test-prev-next.t	Wed May 17 09:28:10 2017 +0200
@@ -47,6 +47,9 @@
   $ hg bookmarks
      mark                      1:6e742c9127b3
    * mark2                     0:a154386e50d1
+  $ hg next --dry-run --color=debug
+  hg update 1;
+  [[evolve.rev|1]] added b
   $ hg next
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   [1] added b
@@ -147,6 +150,9 @@
   $ hg next --evolve
   no children
   [1]
+  $ hg prev --dry-run --color=debug
+  hg update 1;
+  [[evolve.rev|1]] added b
   $ hg prev
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   [1] added b