diff options
Diffstat (limited to 'mercurial/templatekw.py')
-rw-r--r-- | mercurial/templatekw.py | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py index 489dda6..b88bafa 100644 --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -7,7 +7,6 @@ from node import hex import patch, util, error -import hbisect def showlist(name, values, plural=None, **args): '''expand set of values. @@ -146,10 +145,6 @@ def showauthor(repo, ctx, templ, **args): """:author: String. The unmodified author of the changeset.""" return ctx.user() -def showbisect(repo, ctx, templ, **args): - """:bisect: String. The changeset bisection status.""" - return hbisect.label(repo, ctx.node()) - def showbranch(**args): """:branch: String. The name of the branch on which the changeset was committed. @@ -275,14 +270,6 @@ def shownode(repo, ctx, templ, **args): """ return ctx.hex() -def showphase(repo, ctx, templ, **args): - """:phase: String. The changeset phase name.""" - return ctx.phasestr() - -def showphaseidx(repo, ctx, templ, **args): - """:phaseidx: Integer. The changeset phase index.""" - return ctx.phase() - def showrev(repo, ctx, templ, **args): """:rev: Integer. The repository-local changeset revision number.""" return ctx.rev() @@ -301,7 +288,6 @@ def showtags(**args): # revcache - a cache dictionary for the current revision keywords = { 'author': showauthor, - 'bisect': showbisect, 'branch': showbranch, 'branches': showbranches, 'bookmarks': showbookmarks, @@ -320,22 +306,9 @@ keywords = { 'latesttagdistance': showlatesttagdistance, 'manifest': showmanifest, 'node': shownode, - 'phase': showphase, - 'phaseidx': showphaseidx, 'rev': showrev, 'tags': showtags, } -def _showparents(**args): - """:parents: List of strings. The parents of the changeset in "rev:node" - format. If the changeset has only one "natural" parent (the predecessor - revision) nothing is shown.""" - pass - -dockeywords = { - 'parents': _showparents, -} -dockeywords.update(keywords) - # tell hggettext to extract docstrings from these functions: -i18nfunctions = dockeywords.values() +i18nfunctions = keywords.values() |