repofilecache: directly use 'repo.vfs.join'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 14:25:21 +0200
changeset 31283 f84b0e926eb2
parent 31282 b9228a2219ca
child 31284 74cbbd5420ba
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.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Aug 05 14:23:58 2016 +0200
+++ b/mercurial/localrepo.py	Fri Aug 05 14:25:21 2016 +0200
@@ -71,7 +71,7 @@
     """
 
     def join(self, obj, fname):
-        return obj.join(fname)
+        return obj.vfs.join(fname)
     def __get__(self, repo, type=None):
         if repo is None:
             return self