Mercurial > hg
changeset 36439:02cd2fb6de72
narrow: drop redundant templatekw/revset names from help text
":<name>:" is automatically added by the registrar.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Feb 2018 13:42:51 +0900 |
parents | 93228b2a1fc0 |
children | bb852a525633 |
files | hgext/narrow/narrowtemplates.py |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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))