mercurial/templatekw.py
changeset 15422 042e11c4e416
parent 15155 f4a8d754cd0a
child 15823 a1f818a2b50d
--- 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,
 }