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

login
register
mail settings
Submitter Yuya Nishihara
Date Feb. 26, 2018, 2:29 p.m.
Message ID <95308378b88ad89dce5b.1519655375@mimosa>
Download mbox | patch
Permalink /patch/28408/
State Accepted
Headers show

Comments

Yuya Nishihara - Feb. 26, 2018, 2:29 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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."

Patch

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']