Mercurial > evolve
changeset 2494:17bc96b54255
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 29 May 2017 11:03:13 +0200 |
parents | 3ee8e9a12f41 |
children | 0db53f48db2d |
files | hgext3rd/evolve/templatekw.py tests/test-evolve-templates.t |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 ''
--- 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