repofilecache: define a 'join' method
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 05 Aug 2016 14:23:58 +0200
changeset 31282 b9228a2219ca
parent 31281 2a1b16dbb9c4
child 31283 f84b0e926eb2
repofilecache: define a 'join' method We are about to turn the 'join' method of the base class Abstract, so we need on to be defined in the localrepo. The ultimate goal here is to be able to stop relying for the 'localrepo' class to have a 'join' methods (there is above one hundred methods on 'localrepo'. This change make te 'repo' file cache have its own code so that we can prepare this change to the repostory class. explicite join
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Mar 06 18:42:36 2017 -0500
+++ b/mercurial/localrepo.py	Fri Aug 05 14:23:58 2016 +0200
@@ -70,6 +70,8 @@
     """All filecache usage on repo are done for logic that should be unfiltered
     """
 
+    def join(self, obj, fname):
+        return obj.join(fname)
     def __get__(self, repo, type=None):
         if repo is None:
             return self