comparison mercurial/localrepo.py @ 31292:f84b0e926eb2

repofilecache: directly use 'repo.vfs.join' The 'vfs' attribute already have all methods we need, the value of going through the repository for this is low. so we removes it.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 05 Aug 2016 14:25:21 +0200
parents b9228a2219ca
children 42a7195541a1
comparison
equal deleted inserted replaced
31291:b9228a2219ca 31292:f84b0e926eb2
69 class repofilecache(scmutil.filecache): 69 class repofilecache(scmutil.filecache):
70 """All filecache usage on repo are done for logic that should be unfiltered 70 """All filecache usage on repo are done for logic that should be unfiltered
71 """ 71 """
72 72
73 def join(self, obj, fname): 73 def join(self, obj, fname):
74 return obj.join(fname) 74 return obj.vfs.join(fname)
75 def __get__(self, repo, type=None): 75 def __get__(self, repo, type=None):
76 if repo is None: 76 if repo is None:
77 return self 77 return self
78 return super(repofilecache, self).__get__(repo.unfiltered(), type) 78 return super(repofilecache, self).__get__(repo.unfiltered(), type)
79 def __set__(self, repo, value): 79 def __set__(self, repo, value):