# HG changeset patch # User Pierre-Yves David # Date 2016-08-05 12:23:58 # Node ID b9228a2219ca30e3448ada3ed8c36848f4b2b49f # Parent 2a1b16dbb9c4760002059d97c15cd0828fb1fb60 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 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -70,6 +70,8 @@ class repofilecache(scmutil.filecache): """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