[PATCH 1 of 5] templatekw: hide help of "branches" by DEPRECATED marker
Yuya Nishihara
yuya at tcha.org
Thu Oct 1 13:38:05 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1443237579 -32400
# Sat Sep 26 12:19:39 2015 +0900
# Node ID c310d3303e03b338ed5ad8c9a8254d19effc8915
# Parent 46af0adb5c375cc51ce0d29cbdcd8ba843a33425
templatekw: hide help of "branches" by DEPRECATED marker
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -205,7 +205,7 @@ def showbranch(**args):
def showbranches(**args):
""":branches: List of strings. The name of the branch on which the
changeset was committed. Will be empty if the branch name was
- default.
+ default. (DEPRECATED)
"""
branch = args['ctx'].branch()
if branch != 'default':
@@ -502,7 +502,6 @@ dockeywords = {
'parents': _showparents,
}
dockeywords.update(keywords)
-del dockeywords['branches']
# tell hggettext to extract docstrings from these functions:
i18nfunctions = dockeywords.values()
More information about the Mercurial-devel
mailing list