--- 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,
}