comparison hgext/gpg.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 3aa5c45874c6
children 1f733c2f0165
comparison
equal deleted inserted replaced
6138:09847b90beae 6139:989467e8e3a9
201 """ 201 """
202 202
203 mygpg = newgpg(ui, **opts) 203 mygpg = newgpg(ui, **opts)
204 sigver = "0" 204 sigver = "0"
205 sigmessage = "" 205 sigmessage = ""
206
207 date = opts.get('date')
208 if date:
209 opts['date'] = util.parsedate(date)
210
206 if revs: 211 if revs:
207 nodes = [repo.lookup(n) for n in revs] 212 nodes = [repo.lookup(n) for n in revs]
208 else: 213 else:
209 nodes = [node for node in repo.dirstate.parents() 214 nodes = [node for node in repo.dirstate.parents()
210 if node != hgnode.nullid] 215 if node != hgnode.nullid]