##// END OF EJS Templates
revsets: define a none() revset...
Martin von Zweigbergk -
r38294:f1d55ae2 default
parent child Browse files
Show More
@@ -1346,6 +1346,14 b' def node_(repo, subset, x):'
1346 result = baseset([rn])
1346 result = baseset([rn])
1347 return result & subset
1347 return result & subset
1348
1348
1349 @predicate('none()', safe=True)
1350 def none(repo, subset, x):
1351 """No changesets.
1352 """
1353 # i18n: "none" is a keyword
1354 getargs(x, 0, 0, _("none takes no arguments"))
1355 return baseset()
1356
1349 @predicate('obsolete()', safe=True)
1357 @predicate('obsolete()', safe=True)
1350 def obsolete(repo, subset, x):
1358 def obsolete(repo, subset, x):
1351 """Mutable changeset with a newer version."""
1359 """Mutable changeset with a newer version."""
@@ -584,6 +584,9 b' test empty string'
584 hg: parse error: empty string is not a valid revision
584 hg: parse error: empty string is not a valid revision
585 [255]
585 [255]
586
586
587 test empty revset
588 $ hg log 'none()'
589
587 we can use patterns when searching for tags
590 we can use patterns when searching for tags
588
591
589 $ log 'tag("1..*")'
592 $ log 'tag("1..*")'
General Comments 0
You need to be logged in to leave comments. Login now