Mercurial > public > mercurial-scm > hg-stable
diff mercurial/setdiscovery.py @ 16683:525fdb738975
cleanup: eradicate long lines
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 15:54:54 +0200 |
parents | cff25e4b37d2 |
children | cafd8a8fb713 |
line wrap: on
line diff
--- a/mercurial/setdiscovery.py Fri May 11 18:41:04 2012 +0200 +++ b/mercurial/setdiscovery.py Sat May 12 15:54:54 2012 +0200 @@ -134,11 +134,16 @@ return (ownheadhashes, True, srvheadhashes,) # full blown discovery - undecided = dag.nodeset() # own nodes where I don't know if remote knows them - common = set() # own nodes I know we both know - missing = set() # own nodes I know remote lacks - # treat remote heads (and maybe own heads) as a first implicit sample response + # own nodes where I don't know if remote knows them + undecided = dag.nodeset() + # own nodes I know we both know + common = set() + # own nodes I know remote lacks + missing = set() + + # treat remote heads (and maybe own heads) as a first implicit sample + # response common.update(dag.ancestorset(srvheads)) undecided.difference_update(common)