narrow: add '()' to ellipsis in the revset help
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 09 Aug 2018 12:20:28 +0300
changeset 38964 05ded838c997
parent 38963 467b5c1df72d
child 38965 cf68e2649e0a
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
hgext/narrow/narrowtemplates.py
--- a/hgext/narrow/narrowtemplates.py	Thu Aug 09 10:11:10 2018 -0400
+++ b/hgext/narrow/narrowtemplates.py	Thu Aug 09 12:20:28 2018 +0300
@@ -42,7 +42,7 @@
             return 'outsidenarrow'
     return ''
 
-@revsetpredicate('ellipsis')
+@revsetpredicate('ellipsis()')
 def ellipsisrevset(repo, subset, x):
     """Changesets that are ellipsis nodes."""
     return subset.filter(lambda r: _isellipsis(repo, r))