diff -r 91d99f02b26f -r cc8287d51680 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Jan 11 02:29:56 2012 +0100 +++ b/mercurial/localrepo.py Fri Jan 13 01:19:08 2012 +0100 @@ -480,7 +480,7 @@ def updatebranchcache(self): tip = self.changelog.tip() if self._branchcache is not None and self._branchcachetip == tip: - return self._branchcache + return oldtip = self._branchcachetip self._branchcachetip = tip