##// END OF EJS Templates
revset-only: use __nonzero__ to check if a revset is empty...
Pierre-Yves David -
r22999:88ac1be3 default
parent child Browse files
Show More
@@ -398,7 +398,7 b' def only(repo, subset, x):'
398 args = getargs(x, 1, 2, _('only takes one or two arguments'))
398 args = getargs(x, 1, 2, _('only takes one or two arguments'))
399 include = getset(repo, spanset(repo), args[0])
399 include = getset(repo, spanset(repo), args[0])
400 if len(args) == 1:
400 if len(args) == 1:
401 if len(include) == 0:
401 if not include:
402 return baseset()
402 return baseset()
403
403
404 descendants = set(_revdescendants(repo, include, False))
404 descendants = set(_revdescendants(repo, include, False))
General Comments 0
You need to be logged in to leave comments. Login now