Comments
Patch
@@ -181,6 +181,7 @@ class partialdiscovery(object):
def addcommons(self, commons):
"""registrer nodes known as common"""
self._common.addbases(commons)
+ self._common.removeancestorsfrom(self.undecided)
def hasinfo(self):
"""return True is we have any clue about the remote state"""
@@ -322,7 +323,6 @@ def findcommonheads(ui, local, remote,
if sample:
commoninsample = set(n for i, n in enumerate(sample) if yesno[i])
disco.addcommons(commoninsample)
- disco._common.removeancestorsfrom(disco.undecided)
# heads(common) == heads(common.bases) since common represents common.bases
# and all its ancestors