# HG changeset patch # User Matt Mackall # Date 2009-06-01 18:51:21 # Node ID 27a103df29b7428de8f4aae205935514492ed84f # Parent 8676dd81944497d978cd82e29125c9eead2968a2 commands: drop files arg for commit calls diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -645,7 +645,7 @@ def commit(ui, repo, *pats, **opts): 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 @@ def import_(ui, repo, patch1, *patches, 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: