diff mercurial/interfaces/repository.py @ 44386:0bf3b5e80d30

manifest: move matches method to be outside the interface In order to adequately smoke out any legacy consumers of the method, we rename it to _matches so it's clear that it's class-private. To my amazement, all consumers of this method really only wanted matching filenames, not a full filtered manifest. Differential Revision: https://phab.mercurial-scm.org/D8085
author Augie Fackler <augie@google.com>
date Wed, 05 Feb 2020 17:13:51 -0500
parents c86256bd4eb8
children 948fac24bc39
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py	Mon Feb 10 21:02:22 2020 -0500
+++ b/mercurial/interfaces/repository.py	Wed Feb 05 17:13:51 2020 -0500
@@ -985,18 +985,9 @@
     def hasdir(dir):
         """Returns a bool indicating if a directory is in this manifest."""
 
-    def matches(match):
-        """Generate a new manifest filtered through a matcher.
-
-        Returns an object conforming to the ``imanifestdict`` interface.
-        """
-
     def walk(match):
         """Generator of paths in manifest satisfying a matcher.
 
-        This is equivalent to ``self.matches(match).iterkeys()`` except a new
-        manifest object is not created.
-
         If the matcher has explicit files listed and they don't exist in
         the manifest, ``match.bad()`` is called for each missing file.
         """