--- a/mercurial/localrepo.py Sat Dec 22 02:04:49 2012 +0100
+++ b/mercurial/localrepo.py Thu Dec 20 16:28:43 2012 +0100
@@ -1440,7 +1440,7 @@
branchmap.update(self, cache, ctxgen)
cache.tipnode = self.changelog.tip()
cache.tiprev = self.changelog.rev(cache.tipnode)
- branchmap.write(self, cache)
+ cache.write(self)
# Ensure the persistent tag cache is updated. Doing it now
# means that the tag cache only has to worry about destroyed
@@ -2498,7 +2498,7 @@
self[rtiprev].node(),
rtiprev)
self._branchcache = cache
- branchmap.write(self, cache)
+ cache.write(self)
self.invalidate()
return len(self.heads()) + 1
finally: