##// END OF EJS Templates
branchcache: introduce a base class for branchmap...
marmoute -
r52347:84fca6d7 default
parent child Browse files
Show More
@@ -183,7 +183,7 b' def _branchcachedesc(repo):'
183 183 return b'branch cache'
184 184
185 185
186 class branchcache:
186 class _BaseBranchCache:
187 187 """A dict like object that hold branches heads cache.
188 188
189 189 This cache is used to avoid costly computations to determine all the
@@ -652,11 +652,12 b' class branchcache:'
652 652 self.write(repo)
653 653
654 654
655 class remotebranchcache(branchcache):
656 """Branchmap info for a remote connection, should not write locally"""
655 class branchcache(_BaseBranchCache):
656 """Branchmap info for a local repo or repoview"""
657 657
658 def write(self, repo):
659 pass
658
659 class remotebranchcache(_BaseBranchCache):
660 """Branchmap info for a remote connection, should not write locally"""
660 661
661 662
662 663 # Revision branch info cache
General Comments 0
You need to be logged in to leave comments. Login now