##// END OF EJS Templates
branchcache: stop storing a repository instance on the cache altogether...
marmoute -
r52344:fd30c430 default
parent child Browse files
Show More
@@ -60,8 +60,8 b' class BranchMapCache:'
60 def __getitem__(self, repo):
60 def __getitem__(self, repo):
61 self.updatecache(repo)
61 self.updatecache(repo)
62 bcache = self._per_filter[repo.filtername]
62 bcache = self._per_filter[repo.filtername]
63 assert bcache._repo.filtername == repo.filtername, (
63 assert bcache._filtername == repo.filtername, (
64 bcache._repo.filtername,
64 bcache._filtername,
65 repo.filtername,
65 repo.filtername,
66 )
66 )
67 return bcache
67 return bcache
@@ -80,8 +80,8 b' class BranchMapCache:'
80 """
80 """
81 self.updatecache(repo)
81 self.updatecache(repo)
82 bcache = self._per_filter[repo.filtername]
82 bcache = self._per_filter[repo.filtername]
83 assert bcache._repo.filtername == repo.filtername, (
83 assert bcache._filtername == repo.filtername, (
84 bcache._repo.filtername,
84 bcache._filtername,
85 repo.filtername,
85 repo.filtername,
86 )
86 )
87 bcache.write(repo)
87 bcache.write(repo)
@@ -220,7 +220,7 b' class branchcache:'
220 """hasnode is a function which can be used to verify whether changelog
220 """hasnode is a function which can be used to verify whether changelog
221 has a given node or not. If it's not provided, we assume that every node
221 has a given node or not. If it's not provided, we assume that every node
222 we have exists in changelog"""
222 we have exists in changelog"""
223 self._repo = repo
223 self._filtername = repo.filtername
224 self._delayed = False
224 self._delayed = False
225 if tipnode is None:
225 if tipnode is None:
226 self.tipnode = repo.nullid
226 self.tipnode = repo.nullid
@@ -435,8 +435,8 b' class branchcache:'
435 )
435 )
436
436
437 def write(self, repo):
437 def write(self, repo):
438 assert self._repo.filtername == repo.filtername, (
438 assert self._filtername == repo.filtername, (
439 self._repo.filtername,
439 self._filtername,
440 repo.filtername,
440 repo.filtername,
441 )
441 )
442 tr = repo.currenttransaction()
442 tr = repo.currenttransaction()
@@ -483,8 +483,8 b' class branchcache:'
483 missing heads, and a generator of nodes that are strictly a superset of
483 missing heads, and a generator of nodes that are strictly a superset of
484 heads missing, this function updates self to be correct.
484 heads missing, this function updates self to be correct.
485 """
485 """
486 assert self._repo.filtername == repo.filtername, (
486 assert self._filtername == repo.filtername, (
487 self._repo.filtername,
487 self._filtername,
488 repo.filtername,
488 repo.filtername,
489 )
489 )
490 starttime = util.timer()
490 starttime = util.timer()
General Comments 0
You need to be logged in to leave comments. Login now