Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 18130:1b05ffce47bd
branchmap: make update responsible to update the cache key
The update function have all necessary data to keep the branchcache key
up to date with its value.
This saves assignment to the cache key that each caller of update had to do by
hand.
The strip case is a bit more complicated to handles from inside the function but
I do not expect any impact.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 24 Dec 2012 02:22:04 +0100 |
parents | f0d56efaa35a |
children | f0eeb9b3444a |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Dec 22 02:11:12 2012 +0100 +++ b/mercurial/localrepo.py Mon Dec 24 02:22:04 2012 +0100 @@ -1438,8 +1438,6 @@ if self.changelog.hasnode(node)) cache = self._branchcache branchmap.update(self, cache, ctxgen) - cache.tipnode = self.changelog.tip() - cache.tiprev = self.changelog.rev(cache.tipnode) cache.write(self) # Ensure the persistent tag cache is updated. Doing it now