diff -r 09847b90beae -r 989467e8e3a9 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sun Feb 17 12:53:57 2008 +0100 +++ b/mercurial/cmdutil.py Sun Feb 17 21:34:28 2008 +0100 @@ -1115,6 +1115,9 @@ def commit(ui, repo, commitfunc, pats, opts): '''commit the specified files or all outstanding changes''' + date = opts.get('date') + if date: + opts['date'] = util.parsedate(date) message = logmessage(opts) # extract addremove carefully -- this function can be called from a command