Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 8706:25e9c71b89de
commit: drop the now-unused files parameter
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Jun 2009 14:11:32 -0500 |
parents | 27a103df29b7 |
children | bf17aeafb869 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Jun 01 14:11:19 2009 -0500 +++ b/mercurial/commands.py Mon Jun 01 14:11:32 2009 -0500 @@ -645,8 +645,8 @@ e = cmdutil.commitforceeditor def commitfunc(ui, repo, message, match, opts): - return repo.commit(None, message, opts.get('user'), - opts.get('date'), match, editor=e, extra=extra) + return repo.commit(message, opts.get('user'), opts.get('date'), match, + editor=e, extra=extra) node = cmdutil.commit(ui, repo, commitfunc, pats, opts) if not node: @@ -1754,7 +1754,7 @@ files = patch.updatedir(ui, repo, files, similarity=sim/100.) if not opts.get('no_commit'): m = cmdutil.matchfiles(repo, files or []) - n = repo.commit(None, message, opts.get('user') or user, + n = repo.commit(message, opts.get('user') or user, opts.get('date') or date, match=m, editor=cmdutil.commiteditor) if opts.get('exact'):