##// END OF EJS Templates
revlog: add a method to get missing revs incrementally...
Siddharth Agarwal -
r23337:3a8a763f default
parent child Browse files
Show More
@@ -495,6 +495,20 b' class revlog(object):'
495 missing.sort()
495 missing.sort()
496 return has, [self.node(r) for r in missing]
496 return has, [self.node(r) for r in missing]
497
497
498 def incrementalmissingrevs(self, common=None):
499 """Return an object that can be used to incrementally compute the
500 revision numbers of the ancestors of arbitrary sets that are not
501 ancestors of common. This is an ancestor.incrementalmissingancestors
502 object.
503
504 'common' is a list of revision numbers. If common is not supplied, uses
505 nullrev.
506 """
507 if common is None:
508 common = [nullrev]
509
510 return ancestor.incrementalmissingancestors(self.parentrevs, common)
511
498 def findmissingrevs(self, common=None, heads=None):
512 def findmissingrevs(self, common=None, heads=None):
499 """Return the revision numbers of the ancestors of heads that
513 """Return the revision numbers of the ancestors of heads that
500 are not ancestors of common.
514 are not ancestors of common.
General Comments 0
You need to be logged in to leave comments. Login now