Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 5988:ee317dbfb9d0
update the branch cache at the end of addchangegroup
This should avoid a bad performance problem when the branch cache is
not up-to-date, and hgweb can't write an updated version because it
lacks permissions.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 03 Feb 2008 21:03:46 -0200 |
parents | 850494d62674 |
children | 30d2fecaab76 65340b8231eb |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Feb 03 21:03:46 2008 -0200 +++ b/mercurial/localrepo.py Sun Feb 03 21:03:46 2008 -0200 @@ -1900,6 +1900,10 @@ del tr if changesets > 0: + # forcefully update the on-disk branch cache + self.ui.debug(_("updating the branch cache\n")) + self.branchcache = None + self.branchtags() self.hook("changegroup", node=hex(self.changelog.node(cor+1)), source=srctype, url=url)