cmdutil: switch commit to match
authorMatt Mackall <mpm@selenic.com>
Mon, 12 May 2008 11:37:07 -0500
changeset 6581 1ae7cb678d24
parent 6580 da2a20d2ba3d
child 6582 5acbdd3941c4
cmdutil: switch commit to match
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Mon May 12 11:37:07 2008 -0500
+++ b/mercurial/cmdutil.py	Mon May 12 11:37:07 2008 -0500
@@ -1149,13 +1149,13 @@
     if opts.get('addremove'):
         addremove(repo, pats, opts)
 
-    fns, match, anypats = matchpats(repo, pats, opts)
+    m = match(repo, pats, opts)
     if pats:
-        status = repo.status(files=fns, match=match)
+        status = repo.status(files=m.files(), match=m)
         modified, added, removed, deleted, unknown = status[:5]
         files = modified + added + removed
         slist = None
-        for f in fns:
+        for f in m.files():
             if f == '.':
                 continue
             if f not in files: