Patchwork [2,of,4] templatekw: add obsolete state

login
register
mail settings
Submitter Romain DEP.
Date Jan. 6, 2015, 9:47 a.m.
Message ID <930ca8c3988bc514a471.1420537673@ultas>
Download mbox | patch
Permalink /patch/7331/
State Rejected
Headers show

Comments

Romain DEP. - Jan. 6, 2015, 9:47 a.m.
# HG changeset patch
# User Romain DEP. <rom1dep@gmail.com>
# Date 1420412666 -3600
#      Mon Jan 05 00:04:26 2015 +0100
# Node ID 930ca8c3988bc514a4716036934b28e55462ba2f
# Parent  48b4b6810d3130975cb66d2034ea9a8001551a9f
templatekw: add obsolete state

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -358,6 +358,10 @@ 
     """:hidden: String. Return the changeset hidden state."""
     return ctx.hiddenstr()
 
+def showobsolete(repo, ctx, templ, **args):
+    """:obsolete: String. Return the changeset obsolete state."""
+    return ctx.obsoletestr()
+
 def showrev(repo, ctx, templ, **args):
     """:rev: Integer. The repository-local changeset revision number."""
     return ctx.rev()
@@ -423,6 +427,7 @@ 
     'phase': showphase,
     'phaseidx': showphaseidx,
     'hidden': showhidden,
+    'obsolete': showobsolete,
     'rev': showrev,
     'subrepos': showsubrepos,
 }