--- a/mercurial/changegroup.py Mon Aug 08 18:05:10 2016 +0200
+++ b/mercurial/changegroup.py Mon Aug 08 22:06:07 2016 -0700
@@ -404,6 +404,7 @@
# coming call to `destroyed` will repair it.
# In other case we can safely update cache on
# disk.
+ repo.ui.debug('updating the branch cache\n')
branchmap.updatecache(repo.filtered('served'))
def runhooks():
@@ -413,8 +414,6 @@
if clstart >= len(repo):
return
- # forcefully update the on-disk branch cache
- repo.ui.debug("updating the branch cache\n")
repo.hook("changegroup", **hookargs)
for n in added: