comparison mercurial/setdiscovery.py @ 23746:4ef2f2fa8b8b

setdiscovery: drop shadowed 'undecided' assignment The 'undecided' variable was never used before being overwritten a few lines later.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 06 Jan 2015 16:30:37 -0800
parents f8a2647fe020
children f82173a90c2c
comparison
equal deleted inserted replaced
23745:513d47905114 23746:4ef2f2fa8b8b
172 ownheadhashes = dag.externalizeall(ownheads) 172 ownheadhashes = dag.externalizeall(ownheads)
173 return (ownheadhashes, True, srvheadhashes,) 173 return (ownheadhashes, True, srvheadhashes,)
174 174
175 # full blown discovery 175 # full blown discovery
176 176
177 # own nodes where I don't know if remote knows them
178 undecided = dag.nodeset()
179 # own nodes I know we both know 177 # own nodes I know we both know
180 # treat remote heads (and maybe own heads) as a first implicit sample 178 # treat remote heads (and maybe own heads) as a first implicit sample
181 # response 179 # response
182 common = cl.incrementalmissingrevs(srvheads) 180 common = cl.incrementalmissingrevs(srvheads)
183 commoninsample = set(n for i, n in enumerate(sample) if yesno[i]) 181 commoninsample = set(n for i, n in enumerate(sample) if yesno[i])
184 common.addbases(commoninsample) 182 common.addbases(commoninsample)
183 # own nodes where I don't know if remote knows them
185 undecided = set(common.missingancestors(ownheads)) 184 undecided = set(common.missingancestors(ownheads))
186 # own nodes I know remote lacks 185 # own nodes I know remote lacks
187 missing = set() 186 missing = set()
188 187
189 full = False 188 full = False