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
--- 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