mercurial/context.py
changeset 23305 0cc283f44655
parent 23304 dd3f857598a0
child 23404 b913c394386f
--- a/mercurial/context.py	Wed Nov 12 22:20:36 2014 -0800
+++ b/mercurial/context.py	Wed Oct 22 21:38:30 2014 -0700
@@ -71,19 +71,7 @@
         object oriented way for other contexts to customize the manifest
         generation.
         """
-        if match.always():
-            return self.manifest().copy()
-
-        files = match.files()
-        if (match.matchfn == match.exact or
-            (not match.anypats() and util.all(fn in self for fn in files))):
-            return self.manifest().intersectfiles(files)
-
-        mf = self.manifest().copy()
-        for fn in mf.keys():
-            if not match(fn):
-                del mf[fn]
-        return mf
+        return self.manifest().matches(match)
 
     def _matchstatus(self, other, match):
         """return match.always if match is none