mercurial/localrepo.py
changeset 17670 9dbd5fa6d301
parent 17654 1dc37491e9fb
child 17675 8575f4a2126e
--- a/mercurial/localrepo.py	Wed Aug 01 22:13:27 2012 -0500
+++ b/mercurial/localrepo.py	Mon Sep 03 14:03:38 2012 +0200
@@ -2439,10 +2439,10 @@
             tr.close()
 
             if changesets > 0:
+                self.updatebranchcache()
                 def runhooks():
                     # forcefully update the on-disk branch cache
                     self.ui.debug("updating the branch cache\n")
-                    self.updatebranchcache()
                     self.hook("changegroup", node=hex(cl.node(clstart)),
                               source=srctype, url=url)