diff mercurial/scmutil.py @ 14669:2d2604adfdd6

context: add a match builder method This is groundwork for matching against filesets in contexts
author Matt Mackall <mpm@selenic.com>
date Sat, 18 Jun 2011 16:52:51 -0500
parents 5867bd6e7cf5
children 19197fa4c41c
line wrap: on
line diff
--- a/mercurial/scmutil.py	Fri Jun 17 18:24:54 2011 -0300
+++ b/mercurial/scmutil.py	Sat Jun 18 16:52:51 2011 -0500
@@ -563,9 +563,8 @@
         pats = []
     if not globbed and default == 'relpath':
         pats = expandpats(pats or [])
-    m = matchmod.match(repo.root, repo.getcwd(), pats,
-                       opts.get('include'), opts.get('exclude'), default,
-                       auditor=repo.auditor)
+    m = repo[None].match(pats, opts.get('include'), opts.get('exclude'),
+                         default)
     def badfn(f, msg):
         repo.ui.warn("%s: %s\n" % (m.rel(f), msg))
     m.bad = badfn