comparison 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
comparison
equal deleted inserted replaced
16676:654b9e1966f7 16683:525fdb738975
132 ui.note(_("all local heads known remotely\n")) 132 ui.note(_("all local heads known remotely\n"))
133 ownheadhashes = dag.externalizeall(ownheads) 133 ownheadhashes = dag.externalizeall(ownheads)
134 return (ownheadhashes, True, srvheadhashes,) 134 return (ownheadhashes, True, srvheadhashes,)
135 135
136 # full blown discovery 136 # full blown discovery
137 undecided = dag.nodeset() # own nodes where I don't know if remote knows them 137
138 common = set() # own nodes I know we both know 138 # own nodes where I don't know if remote knows them
139 missing = set() # own nodes I know remote lacks 139 undecided = dag.nodeset()
140 140 # own nodes I know we both know
141 # treat remote heads (and maybe own heads) as a first implicit sample response 141 common = set()
142 # own nodes I know remote lacks
143 missing = set()
144
145 # treat remote heads (and maybe own heads) as a first implicit sample
146 # response
142 common.update(dag.ancestorset(srvheads)) 147 common.update(dag.ancestorset(srvheads))
143 undecided.difference_update(common) 148 undecided.difference_update(common)
144 149
145 full = False 150 full = False
146 while undecided: 151 while undecided: