##// 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 return baseset([m])
1021 return baseset([m])
1022 return baseset([])
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 def modifies(repo, subset, x):
1034 def modifies(repo, subset, x):
1025 """``modifies(pattern)``
1035 """``modifies(pattern)``
1026 Changesets modifying files matched by pattern.
1036 Changesets modifying files matched by pattern.
@@ -1602,6 +1612,7 b' symbols = {'
1602 "max": maxrev,
1612 "max": maxrev,
1603 "merge": merge,
1613 "merge": merge,
1604 "min": minrev,
1614 "min": minrev,
1615 "_missingancestors": _missingancestors,
1605 "modifies": modifies,
1616 "modifies": modifies,
1606 "obsolete": obsolete,
1617 "obsolete": obsolete,
1607 "origin": origin,
1618 "origin": origin,
@@ -1671,6 +1682,7 b' safesymbols = set(['
1671 "max",
1682 "max",
1672 "merge",
1683 "merge",
1673 "min",
1684 "min",
1685 "_missingancestors",
1674 "modifies",
1686 "modifies",
1675 "obsolete",
1687 "obsolete",
1676 "origin",
1688 "origin",
General Comments 0
You need to be logged in to leave comments. Login now