mercurial/cmdutil.py
changeset 6139 989467e8e3a9
parent 6112 5ffa962783c4
child 6145 154f8be6272b
--- 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