comparison mercurial/discovery.py @ 37636:330ada7e8ea5

discovery: don't redundantly call branchmap We were calling the remote command twice without mutation the remote in between. Derp. Differential Revision: https://phab.mercurial-scm.org/D3287
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 11 Apr 2018 17:24:43 -0700
parents 444ed53f93df
children 1964d2d1f421
comparison
equal deleted inserted replaced
37635:cc8c06835097 37636:330ada7e8ea5
207 newbranches = branches - set(remotemap) 207 newbranches = branches - set(remotemap)
208 branches.difference_update(newbranches) 208 branches.difference_update(newbranches)
209 209
210 # A. register remote heads 210 # A. register remote heads
211 remotebranches = set() 211 remotebranches = set()
212 for branch, heads in remote.branchmap().iteritems(): 212 for branch, heads in remotemap.iteritems():
213 remotebranches.add(branch) 213 remotebranches.add(branch)
214 known = [] 214 known = []
215 unsynced = [] 215 unsynced = []
216 knownnode = cl.hasnode # do not use nodemap until it is filtered 216 knownnode = cl.hasnode # do not use nodemap until it is filtered
217 for h in heads: 217 for h in heads: