comparison mercurial/cmdutil.py @ 6139:989467e8e3a9

Fix bad behaviour when specifying an invalid date (issue700) commit (aborts _after_ typing in a commit message) backout (aborted after the initial revert) tag (edited .hgtags and couldn't commit) import (patch applied, then commit fails) qnew (aborts on bad dates, but writes any valid date into the # Date header) qrefresh (like qnew) sign (like tag) fetch (merge, merge, merge, merge, abort)
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 17 Feb 2008 21:34:28 +0100
parents 5ffa962783c4
children 154f8be6272b
comparison
equal deleted inserted replaced
6138:09847b90beae 6139:989467e8e3a9
1113 yield 'iter', rev, None 1113 yield 'iter', rev, None
1114 return iterate(), matchfn 1114 return iterate(), matchfn
1115 1115
1116 def commit(ui, repo, commitfunc, pats, opts): 1116 def commit(ui, repo, commitfunc, pats, opts):
1117 '''commit the specified files or all outstanding changes''' 1117 '''commit the specified files or all outstanding changes'''
1118 date = opts.get('date')
1119 if date:
1120 opts['date'] = util.parsedate(date)
1118 message = logmessage(opts) 1121 message = logmessage(opts)
1119 1122
1120 # extract addremove carefully -- this function can be called from a command 1123 # extract addremove carefully -- this function can be called from a command
1121 # that doesn't support addremove 1124 # that doesn't support addremove
1122 if opts.get('addremove'): 1125 if opts.get('addremove'):