comparison hgext/gpg.py @ 5475:3aa5c45874c6

gpg: use the same log message format as hg tag
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 20 Oct 2007 03:04:34 +0200
parents c80af96943aa
children
comparison
equal deleted inserted replaced
5474:5d8f5ad45c12 5475:3aa5c45874c6
247 return 247 return
248 248
249 message = opts['message'] 249 message = opts['message']
250 if not message: 250 if not message:
251 message = "\n".join([_("Added signature for changeset %s") 251 message = "\n".join([_("Added signature for changeset %s")
252 % hgnode.hex(n) 252 % hgnode.short(n)
253 for n in nodes]) 253 for n in nodes])
254 try: 254 try:
255 repo.commit([".hgsigs"], message, opts['user'], opts['date']) 255 repo.commit([".hgsigs"], message, opts['user'], opts['date'])
256 except ValueError, inst: 256 except ValueError, inst:
257 raise util.Abort(str(inst)) 257 raise util.Abort(str(inst))