--- 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))