changeset 29803:dab7069fc2bd

match: remove matchessubrepo method (API) Since it is no more used in cmdutil.{files,remove} and scmutil.addremove we remove this method.
author Hannes Oldenburg <hannes.christian.oldenburg@gmail.com>
date Tue, 16 Aug 2016 08:21:16 +0000
parents 35560189677c
children 7b9157aa752f
files mercurial/match.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Tue Aug 16 08:15:12 2016 +0000
+++ b/mercurial/match.py	Tue Aug 16 08:21:16 2016 +0000
@@ -320,10 +320,6 @@
             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)