[PATCH 2 of 7] remotenames: drop redundant templatekw names from help text

Yuya Nishihara yuya at tcha.org
Mon Feb 26 09:29:35 EST 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1519544441 -32400
#      Sun Feb 25 16:40:41 2018 +0900
# Node ID 95308378b88ad89dce5bed95805ab4b72d310d40
# Parent  b3622121e31c172c91ccf35fb738a85269ad7125
remotenames: drop redundant templatekw names from help text

Also removed the second "List of" phrase, which is obvious from the type
"List of strings."

diff --git a/hgext/remotenames.py b/hgext/remotenames.py
--- a/hgext/remotenames.py
+++ b/hgext/remotenames.py
@@ -228,9 +228,7 @@ def reposetup(ui, repo):
 
 @templatekeyword('remotenames')
 def remotenameskw(**args):
-    """:remotenames: List of strings. List of remote names associated with the
-    changeset.
-    """
+    """List of strings. Remote names associated with the changeset."""
     args = pycompat.byteskwargs(args)
     repo, ctx = args['repo'], args['ctx']
 
@@ -246,9 +244,7 @@ def remotenameskw(**args):
 
 @templatekeyword('remotebookmarks')
 def remotebookmarkskw(**args):
-    """:remotebookmarks: List of strings. List of remote bookmarks associated
-    with the changeset.
-    """
+    """List of strings. Remote bookmarks associated with the changeset."""
     args = pycompat.byteskwargs(args)
     repo, ctx = args['repo'], args['ctx']
 
@@ -261,9 +257,7 @@ def remotebookmarkskw(**args):
 
 @templatekeyword('remotebranches')
 def remotebrancheskw(**args):
-    """:remotebranches: List of strings. List of remote branches associated
-    with the changeset.
-    """
+    """List of strings. Remote branches associated with the changeset."""
     args = pycompat.byteskwargs(args)
     repo, ctx = args['repo'], args['ctx']
 


More information about the Mercurial-devel mailing list