[PATCH 1 of 4] templatekw: add hidden state
Romain DEP.
rom1dep at gmail.com
Tue Jan 6 09:47:52 UTC 2015
# HG changeset patch
# User Romain DEP. <rom1dep at gmail.com>
# Date 1420412273 -3600
# Sun Jan 04 23:57:53 2015 +0100
# Node ID 48b4b6810d3130975cb66d2034ea9a8001551a9f
# Parent 16e29a4607250097d98821758e9455453881efb5
templatekw: add hidden state
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -354,6 +354,10 @@
""":phaseidx: Integer. The changeset phase index."""
return ctx.phase()
+def showhidden(repo, ctx, templ, **args):
+ """:hidden: String. Return the changeset hidden state."""
+ return ctx.hiddenstr()
+
def showrev(repo, ctx, templ, **args):
""":rev: Integer. The repository-local changeset revision number."""
return ctx.rev()
@@ -418,6 +422,7 @@
'p2node': showp2node,
'phase': showphase,
'phaseidx': showphaseidx,
+ 'hidden': showhidden,
'rev': showrev,
'subrepos': showsubrepos,
}
More information about the Mercurial-devel
mailing list