changeset 31282:b9228a2219ca

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
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 05 Aug 2016 14:23:58 +0200
parents 2a1b16dbb9c4
children f84b0e926eb2
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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