# HG changeset patch # User Boris Feld # Date 1496048593 -7200 # Node ID 17bc96b54255c411ca23dbe93ba7efe6678a8c2d # Parent 3ee8e9a12f41d86b73f0bfe3e819fef3ddf3f472 refactoring: rename obsfate template to obsfate_quiet As I don't know how to handle templates arguments, create different templates for each verbosity level wanted. diff -r 3ee8e9a12f41 -r 17bc96b54255 hgext3rd/evolve/templatekw.py --- a/hgext3rd/evolve/templatekw.py Mon May 29 16:39:32 2017 +0200 +++ b/hgext3rd/evolve/templatekw.py Mon May 29 11:03:13 2017 +0200 @@ -97,8 +97,8 @@ return ', '.join(final) -@eh.templatekw("obsfate") -def showobsfate(repo, ctx, templ, **args): +@eh.templatekw("obsfate_quiet") +def showobsfate_quiet(repo, ctx, templ, **args): if not ctx.obsolete(): return '' diff -r 3ee8e9a12f41 -r 17bc96b54255 tests/test-evolve-templates.t --- a/tests/test-evolve-templates.t Mon May 29 16:39:32 2017 +0200 +++ b/tests/test-evolve-templates.t Mon May 29 11:03:13 2017 +0200 @@ -12,7 +12,7 @@ > [extensions] > evolve = > [alias] - > tlog = log -G -T '{node|short} Precursors: {precursors} | Successors: {successors} | Fate: {obsfate}\n' + > tlog = log -G -T '{node|short} Precursors: {precursors} | Successors: {successors} | Fate: {obsfate_quiet}\n' > EOF Test templates on amended commit