diff mercurial/context.py @ 14674:1c151b963254

match: allow passing a context object to match core
author Matt Mackall <mpm@selenic.com>
date Sat, 18 Jun 2011 16:52:51 -0500
parents 2d2604adfdd6
children cf5f9df6406b
line wrap: on
line diff
--- a/mercurial/context.py	Sat Jun 18 16:52:51 2011 -0500
+++ b/mercurial/context.py	Sat Jun 18 16:52:51 2011 -0500
@@ -212,7 +212,8 @@
     def match(self, pats=[], include=None, exclude=None, default='glob'):
         r = self._repo
         return matchmod.match(r.root, r.getcwd(), pats,
-                              include, exclude, default, auditor=r.auditor)
+                              include, exclude, default,
+                              auditor=r.auditor, ctx=self)
 
     def diff(self, ctx2=None, match=None, **opts):
         """Returns a diff generator for the given contexts and matcher"""