##// END OF EJS Templates
discovery: compute newly discovered missing in a more efficient way...
Boris Feld -
r41316:f4277a35 default
parent child Browse files
Show More
@@ -187,14 +187,10 b' class partialdiscovery(object):'
187
187
188 def addmissings(self, missings):
188 def addmissings(self, missings):
189 """registrer some nodes as missing"""
189 """registrer some nodes as missing"""
190 if self.missing:
190 newmissing = self._repo.revs('%ld::%ld', missings, self.undecided)
191 new = self._repo.revs('descendants(%ld) - descendants(%ld)',
191 if newmissing:
192 missings, self.missing)
192 self.missing.update(newmissing)
193 self.missing.update(new)
193 self.undecided.difference_update(newmissing)
194 else:
195 self.missing.update(self._repo.revs('descendants(%ld)', missings))
196
197 self.undecided.difference_update(self.missing)
198
194
199 def addinfo(self, sample):
195 def addinfo(self, sample):
200 """consume an iterable of (rev, known) tuples"""
196 """consume an iterable of (rev, known) tuples"""
General Comments 0
You need to be logged in to leave comments. Login now