comparison mercurial/localrepo.py @ 32267:c2380b448265

caches: move the 'updating the branch cache' message in 'updatecaches' We are about to remove the branchmap cache update in changegroup application. There is a debug message alongside this update that we do not want to loose. We move the message beforehand to simplify the test update in the next changeset. The message move is quite noisy and isolating that noise is useful. Most tests update are just line reordering since the message is issued at a later point during the transaction. After this changes, the message is displayed in more case since local commit creation also issue it.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 02 May 2017 22:27:44 +0200
parents 2b6692df1bdf
children bd872f64a8ba
comparison
equal deleted inserted replaced
32266:2b6692df1bdf 32267:c2380b448265
1244 # later call to `destroyed` will refresh them. 1244 # later call to `destroyed` will refresh them.
1245 return 1245 return
1246 1246
1247 if tr is None or tr.changes['revs']: 1247 if tr is None or tr.changes['revs']:
1248 # updating the unfiltered branchmap should refresh all the others, 1248 # updating the unfiltered branchmap should refresh all the others,
1249 self.ui.debug('updating the branch cache\n')
1249 branchmap.updatecache(self.filtered('served')) 1250 branchmap.updatecache(self.filtered('served'))
1250 1251
1251 def invalidatecaches(self): 1252 def invalidatecaches(self):
1252 1253
1253 if '_tagscache' in vars(self): 1254 if '_tagscache' in vars(self):