Mercurial > hg
comparison hgext/narrow/narrowtemplates.py @ 38964:05ded838c997
narrow: add '()' to ellipsis in the revset help
ellipsis is a revset function and was missing () after it's name in the help
text. This might confuse users as they try `hg log -r 'ellipsis'`.
Differential Revision: https://phab.mercurial-scm.org/D4167
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Thu, 09 Aug 2018 12:20:28 +0300 |
parents | 7b74afec6772 |
children | 45c18f7345c1 |
comparison
equal
deleted
inserted
replaced
38963:467b5c1df72d | 38964:05ded838c997 |
---|---|
40 if not m.always(): | 40 if not m.always(): |
41 if not any(m(f) for f in ctx.files()): | 41 if not any(m(f) for f in ctx.files()): |
42 return 'outsidenarrow' | 42 return 'outsidenarrow' |
43 return '' | 43 return '' |
44 | 44 |
45 @revsetpredicate('ellipsis') | 45 @revsetpredicate('ellipsis()') |
46 def ellipsisrevset(repo, subset, x): | 46 def ellipsisrevset(repo, subset, x): |
47 """Changesets that are ellipsis nodes.""" | 47 """Changesets that are ellipsis nodes.""" |
48 return subset.filter(lambda r: _isellipsis(repo, r)) | 48 return subset.filter(lambda r: _isellipsis(repo, r)) |