--- a/mercurial/commands.py Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/commands.py Mon May 12 11:37:08 2008 -0500
@@ -562,9 +562,9 @@
See 'hg help dates' for a list of formats valid for -d/--date.
"""
- def commitfunc(ui, repo, files, message, match, opts):
- return repo.commit(files, message, opts['user'], opts['date'], match,
- force_editor=opts.get('force_editor'))
+ def commitfunc(ui, repo, message, match, opts):
+ return repo.commit(match.files(), message, opts['user'], opts['date'],
+ match, force_editor=opts.get('force_editor'))
node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
if not node: