Mercurial > hg-stable
changeset 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 | 513d47905114 |
children | f82173a90c2c |
files | mercurial/setdiscovery.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()