##// END OF EJS Templates
narrow: drop redundant templatekw/revset names from help text...
Yuya Nishihara -
r36457:02cd2fb6 default
parent child Browse files
Show More
@@ -24,16 +24,15 b' def _isellipsis(repo, rev):'
24
24
25 @templatekeyword('ellipsis')
25 @templatekeyword('ellipsis')
26 def ellipsis(repo, ctx, templ, **args):
26 def ellipsis(repo, ctx, templ, **args):
27 """:ellipsis: String. 'ellipsis' if the change is an ellipsis node,
27 """String. 'ellipsis' if the change is an ellipsis node, else ''."""
28 else ''."""
29 if _isellipsis(repo, ctx.rev()):
28 if _isellipsis(repo, ctx.rev()):
30 return 'ellipsis'
29 return 'ellipsis'
31 return ''
30 return ''
32
31
33 @templatekeyword('outsidenarrow')
32 @templatekeyword('outsidenarrow')
34 def outsidenarrow(repo, ctx, templ, **args):
33 def outsidenarrow(repo, ctx, templ, **args):
35 """:outsidenarrow: String. 'outsidenarrow' if the change affects no
34 """String. 'outsidenarrow' if the change affects no tracked files,
36 tracked files, else ''."""
35 else ''."""
37 if util.safehasattr(repo, 'narrowmatch'):
36 if util.safehasattr(repo, 'narrowmatch'):
38 m = repo.narrowmatch()
37 m = repo.narrowmatch()
39 if not any(m(f) for f in ctx.files()):
38 if not any(m(f) for f in ctx.files()):
@@ -42,7 +41,5 b' def outsidenarrow(repo, ctx, templ, **ar'
42
41
43 @revsetpredicate('ellipsis')
42 @revsetpredicate('ellipsis')
44 def ellipsisrevset(repo, subset, x):
43 def ellipsisrevset(repo, subset, x):
45 """``ellipsis()``
44 """Changesets that are ellipsis nodes."""
46 Changesets that are ellipsis nodes.
47 """
48 return subset.filter(lambda r: _isellipsis(repo, r))
45 return subset.filter(lambda r: _isellipsis(repo, r))
General Comments 0
You need to be logged in to leave comments. Login now