# HG changeset patch # User Boris Feld # Date 1495006090 -7200 # Node ID c1485ebdd6b904071f7dc19daf73f5477c82fd60 # Parent 5774c27ce927780e1d6967ae3412e004fa5778b8 color: update the shorttemplate to use colors diff -r 5774c27ce927 -r c1485ebdd6b9 hgext3rd/evolve/__init__.py --- 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', diff -r 5774c27ce927 -r c1485ebdd6b9 tests/test-prev-next.t --- 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