diff mercurial/changegroup.py @ 29757:976cd337cac9

changegroup: move branch cache debug message to proper location Before, we logged about performing a branch cache update when we weren't actually doing it. Fix that.
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 08 Aug 2016 22:06:07 -0700
parents 4e7be6e33269
children 7b9157aa752f
line wrap: on
line diff
--- 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: