Mercurial > hg
changeset 8704:27a103df29b7
commands: drop files arg for commit calls
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Jun 2009 13:51:21 -0500 |
parents | 8676dd819444 |
children | 509083f54e52 |
files | mercurial/commands.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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: