# HG changeset patch # User Hannes Oldenburg # Date 2016-08-16 08:21:16 # Node ID dab7069fc2bd079064d8d71b4b962d327abfd8c1 # Parent 35560189677c3fc249045c9d58aea0ebd884d24a match: remove matchessubrepo method (API) Since it is no more used in cmdutil.{files,remove} and scmutil.addremove we remove this method. diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -320,10 +320,6 @@ class match(object): kindpats.append((kind, pat, '')) return kindpats - def matchessubrepo(self, subpath): - return (self.exact(subpath) - or any(f.startswith(subpath + '/') for f in self.files())) - def exact(root, cwd, files, badfn=None): return match(root, cwd, files, exact=True, badfn=badfn)