narrow: drop redundant templatekw/revset names from help text
authorYuya Nishihara <yuya@tcha.org>
Sun, 25 Feb 2018 13:42:51 +0900
changeset 36439 02cd2fb6de72
parent 36438 93228b2a1fc0
child 36440 bb852a525633
narrow: drop redundant templatekw/revset names from help text ":<name>:" is automatically added by the registrar.
hgext/narrow/narrowtemplates.py
--- a/hgext/narrow/narrowtemplates.py	Sun Feb 25 21:04:12 2018 -0500
+++ b/hgext/narrow/narrowtemplates.py	Sun Feb 25 13:42:51 2018 +0900
@@ -24,16 +24,15 @@
 
 @templatekeyword('ellipsis')
 def ellipsis(repo, ctx, templ, **args):
-    """:ellipsis: String. 'ellipsis' if the change is an ellipsis node,
-    else ''."""
+    """String. 'ellipsis' if the change is an ellipsis node, else ''."""
     if _isellipsis(repo, ctx.rev()):
         return 'ellipsis'
     return ''
 
 @templatekeyword('outsidenarrow')
 def outsidenarrow(repo, ctx, templ, **args):
-    """:outsidenarrow: String. 'outsidenarrow' if the change affects no
-    tracked files, else ''."""
+    """String. 'outsidenarrow' if the change affects no tracked files,
+    else ''."""
     if util.safehasattr(repo, 'narrowmatch'):
         m = repo.narrowmatch()
         if not any(m(f) for f in ctx.files()):
@@ -42,7 +41,5 @@
 
 @revsetpredicate('ellipsis')
 def ellipsisrevset(repo, subset, x):
-    """``ellipsis()``
-    Changesets that are ellipsis nodes.
-    """
+    """Changesets that are ellipsis nodes."""
     return subset.filter(lambda r: _isellipsis(repo, r))