color: update the shorttemplate to use colors
authorBoris Feld <boris.feld@octobus.net>
Wed, 17 May 2017 09:28:10 +0200
changeset 2396 c1485ebdd6b9
parent 2395 5774c27ce927
child 2397 77e3c8ab44eb
color: update the shorttemplate to use colors
hgext3rd/evolve/__init__.py
tests/test-prev-next.t
--- 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