Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 18131:f0eeb9b3444a
branchmap: make update a method
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sat, 22 Dec 2012 17:08:15 +0100 |
parents | 1b05ffce47bd |
children | d8e7b3a14957 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Dec 24 02:22:04 2012 +0100 +++ b/mercurial/localrepo.py Sat Dec 22 17:08:15 2012 +0100 @@ -666,7 +666,7 @@ if self.changelog.filteredrevs: # some changeset are excluded we can't use the cache bmap = branchmap.branchcache() - branchmap.update(self, bmap, (self[r] for r in self)) + bmap.update(self, (self[r] for r in self)) return bmap else: branchmap.updatecache(self) @@ -1437,7 +1437,7 @@ ctxgen = (self[node] for node in newheadnodes if self.changelog.hasnode(node)) cache = self._branchcache - branchmap.update(self, cache, ctxgen) + cache.update(self, ctxgen) cache.write(self) # Ensure the persistent tag cache is updated. Doing it now