##// END OF EJS Templates
discovery: move cl.hasnode outside of the for-loop...
Pulkit Goyal -
r42196:19ccc678 default
parent child Browse files
Show More
@@ -212,6 +212,7 b' def _headssummary(pushop):'
212 with remote.commandexecutor() as e:
212 with remote.commandexecutor() as e:
213 remotemap = e.callcommand('branchmap', {}).result()
213 remotemap = e.callcommand('branchmap', {}).result()
214
214
215 knownnode = cl.hasnode # do not use nodemap until it is filtered
215 # A. register remote heads of branches which are in outgoing set
216 # A. register remote heads of branches which are in outgoing set
216 for branch, heads in remotemap.iteritems():
217 for branch, heads in remotemap.iteritems():
217 # don't add head info about branches which we don't have locally
218 # don't add head info about branches which we don't have locally
@@ -219,7 +220,6 b' def _headssummary(pushop):'
219 continue
220 continue
220 known = []
221 known = []
221 unsynced = []
222 unsynced = []
222 knownnode = cl.hasnode # do not use nodemap until it is filtered
223 for h in heads:
223 for h in heads:
224 if knownnode(h):
224 if knownnode(h):
225 known.append(h)
225 known.append(h)
General Comments 0
You need to be logged in to leave comments. Login now