mercurial/cmdutil.py
changeset 6582 5acbdd3941c4
parent 6581 1ae7cb678d24
child 6584 29c77e5dfb3c
--- a/mercurial/cmdutil.py	Mon May 12 11:37:07 2008 -0500
+++ b/mercurial/cmdutil.py	Mon May 12 11:37:07 2008 -0500
@@ -235,10 +235,6 @@
     m.bad = badfn
     return m
 
-def matchpats(repo, pats=[], opts={}, globbed=False, default='relpath'):
-    m = match(repo, pats, opts, globbed, default)
-    return m.files(), m, m.anypats()
-
 def walk(repo, match, node=None):
     for src, fn in repo.walk(node, match):
         yield src, fn, match.rel(fn), match.exact(fn)
@@ -1182,6 +1178,6 @@
     else:
         files = []
     try:
-        return commitfunc(ui, repo, files, message, match, opts)
+        return commitfunc(ui, repo, files, message, m, opts)
     except ValueError, inst:
         raise util.Abort(str(inst))