diff hgext/extdiff.py @ 6582:5acbdd3941c4

walk: remove remaining users of cmdutils.matchpats
author Matt Mackall <mpm@selenic.com>
date Mon, 12 May 2008 11:37:07 -0500
parents f89fd07fc51d
children 41eb20cc1c02
line wrap: on
line diff
--- a/hgext/extdiff.py	Mon May 12 11:37:07 2008 -0500
+++ b/hgext/extdiff.py	Mon May 12 11:37:07 2008 -0500
@@ -121,9 +121,9 @@
     - just invoke the diff for a single file in the working dir
     '''
     node1, node2 = cmdutil.revpair(repo, opts['rev'])
-    files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
+    matcher = cmdutil.match(repo, pats, opts)
     modified, added, removed, deleted, unknown = repo.status(
-        node1, node2, files, match=matchfn)[:5]
+        node1, node2, matcher.files(), match=matcher)[:5]
     if not (modified or added or removed):
         return 0