##// END OF EJS Templates
discovery: update undecided from common directly within partialdiscovery...
Boris Feld -
r41204:1d30be90 default
parent child Browse files
Show More
@@ -180,6 +180,7 b' class partialdiscovery(object):'
180 def addcommons(self, commons):
180 def addcommons(self, commons):
181 """registrer nodes known as common"""
181 """registrer nodes known as common"""
182 self._common.addbases(commons)
182 self._common.addbases(commons)
183 self._common.removeancestorsfrom(self.undecided)
183
184
184 def hasinfo(self):
185 def hasinfo(self):
185 """return True is we have any clue about the remote state"""
186 """return True is we have any clue about the remote state"""
@@ -324,7 +325,6 b' def findcommonheads(ui, local, remote,'
324 if sample:
325 if sample:
325 commoninsample = set(n for i, n in enumerate(sample) if yesno[i])
326 commoninsample = set(n for i, n in enumerate(sample) if yesno[i])
326 disco.addcommons(commoninsample)
327 disco.addcommons(commoninsample)
327 disco._common.removeancestorsfrom(disco.undecided)
328
328
329 result = disco.commonheads()
329 result = disco.commonheads()
330 elapsed = util.timer() - start
330 elapsed = util.timer() - start
General Comments 0
You need to be logged in to leave comments. Login now