commands: drop files arg for commit calls
authorMatt Mackall <mpm@selenic.com>
Mon, 01 Jun 2009 13:51:21 -0500
changeset 8704 27a103df29b7
parent 8703 8676dd819444
child 8705 509083f54e52
commands: drop files arg for commit calls
mercurial/commands.py
--- a/mercurial/commands.py	Mon Jun 01 13:51:21 2009 -0500
+++ b/mercurial/commands.py	Mon Jun 01 13:51:21 2009 -0500
@@ -645,7 +645,7 @@
         e = cmdutil.commitforceeditor
 
     def commitfunc(ui, repo, message, match, opts):
-        return repo.commit(match.files(), message, opts.get('user'),
+        return repo.commit(None, message, opts.get('user'),
             opts.get('date'), match, editor=e, extra=extra)
 
     node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
@@ -1753,8 +1753,9 @@
                 finally:
                     files = patch.updatedir(ui, repo, files, similarity=sim/100.)
                 if not opts.get('no_commit'):
-                    n = repo.commit(files, message, opts.get('user') or user,
-                                    opts.get('date') or date,
+                    m = cmdutil.matchfiles(repo, files or [])
+                    n = repo.commit(None, message, opts.get('user') or user,
+                                    opts.get('date') or date, match=m,
                                     editor=cmdutil.commiteditor)
                     if opts.get('exact'):
                         if hex(n) != nodeid: