setdiscovery: drop shadowed 'undecided' assignment
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 06 Jan 2015 16:30:37 -0800
changeset 23746 4ef2f2fa8b8b
parent 23745 513d47905114
child 23747 f82173a90c2c
setdiscovery: drop shadowed 'undecided' assignment The 'undecided' variable was never used before being overwritten a few lines later.
mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py	Tue Jan 06 20:14:52 2015 -0800
+++ b/mercurial/setdiscovery.py	Tue Jan 06 16:30:37 2015 -0800
@@ -174,14 +174,13 @@
 
     # full blown discovery
 
-    # own nodes where I don't know if remote knows them
-    undecided = dag.nodeset()
     # own nodes I know we both know
     # treat remote heads (and maybe own heads) as a first implicit sample
     # response
     common = cl.incrementalmissingrevs(srvheads)
     commoninsample = set(n for i, n in enumerate(sample) if yesno[i])
     common.addbases(commoninsample)
+    # own nodes where I don't know if remote knows them
     undecided = set(common.missingancestors(ownheads))
     # own nodes I know remote lacks
     missing = set()