##// END OF EJS Templates
revset: add an undocumented _missingancestors function...
Siddharth Agarwal -
r20498:fb2df450 default
parent child Browse files
Show More
@@ -1021,6 +1021,16 b' def minrev(repo, subset, x):'
1021 1021 return baseset([m])
1022 1022 return baseset([])
1023 1023
1024 def _missingancestors(repo, subset, x):
1025 # i18n: "_missingancestors" is a keyword
1026 revs, bases = getargs(x, 2, 2,
1027 _("_missingancestors requires two arguments"))
1028 rs = baseset(repo)
1029 revs = getset(repo, rs, revs)
1030 bases = getset(repo, rs, bases)
1031 missing = set(repo.changelog.findmissingrevs(bases, revs))
1032 return baseset([r for r in subset if r in missing])
1033
1024 1034 def modifies(repo, subset, x):
1025 1035 """``modifies(pattern)``
1026 1036 Changesets modifying files matched by pattern.
@@ -1602,6 +1612,7 b' symbols = {'
1602 1612 "max": maxrev,
1603 1613 "merge": merge,
1604 1614 "min": minrev,
1615 "_missingancestors": _missingancestors,
1605 1616 "modifies": modifies,
1606 1617 "obsolete": obsolete,
1607 1618 "origin": origin,
@@ -1671,6 +1682,7 b' safesymbols = set(['
1671 1682 "max",
1672 1683 "merge",
1673 1684 "min",
1685 "_missingancestors",
1674 1686 "modifies",
1675 1687 "obsolete",
1676 1688 "origin",
General Comments 0
You need to be logged in to leave comments. Login now