Mercurial > hg-stable
changeset 15422:042e11c4e416
phases: add a phase template keyword
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sun, 09 Oct 2011 14:25:04 +0200 |
parents | 405ca90df2b1 |
children | ea5b346024e1 |
files | mercurial/templatekw.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templatekw.py Tue Oct 18 18:25:53 2011 +0200 +++ b/mercurial/templatekw.py Sun Oct 09 14:25:04 2011 +0200 @@ -275,6 +275,10 @@ """ return ctx.hex() +def showphase(repo, ctx, templ, **args): + """:rev: Integer. The changeset phase.""" + return ctx.phase() + def showrev(repo, ctx, templ, **args): """:rev: Integer. The repository-local changeset revision number.""" return ctx.rev() @@ -312,6 +316,7 @@ 'latesttagdistance': showlatesttagdistance, 'manifest': showmanifest, 'node': shownode, + 'phase': showphase, 'rev': showrev, 'tags': showtags, }