Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 6600:b822a379860b
match: stop passing files through commitfunc
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | cd4db3999ef9 |
children | a57a27b12965 |
line wrap: on
line diff
--- 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: