comparison hgext/gpg.py @ 22001:135176a198d0

gpg: pass 'editform' argument to 'cmdutil.getcommiteditor' This patch passes 'editform' argument according to the format below: EXTENSION[.COMMAND][.ROUTE] - EXTENSION: name of extension - COMMAND: name of command, if there are two or more commands in EXTENSION - ROUTE: name of route, if there are two or more routes in COMMAND In this patch, 'sign' is used as COMMAND, and ROUTE is omitted.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 02 Aug 2014 21:46:26 +0900
parents 59af0b21ec31
children 80b6919eb199
comparison
equal deleted inserted replaced
22000:20fd00ee432e 22001:135176a198d0
275 # we don't translate commit messages 275 # we don't translate commit messages
276 message = "\n".join(["Added signature for changeset %s" 276 message = "\n".join(["Added signature for changeset %s"
277 % hgnode.short(n) 277 % hgnode.short(n)
278 for n in nodes]) 278 for n in nodes])
279 try: 279 try:
280 editor = cmdutil.getcommiteditor(editform='gpg.sign', **opts)
280 repo.commit(message, opts['user'], opts['date'], match=msigs, 281 repo.commit(message, opts['user'], opts['date'], match=msigs,
281 editor=cmdutil.getcommiteditor(**opts)) 282 editor=editor)
282 except ValueError, inst: 283 except ValueError, inst:
283 raise util.Abort(str(inst)) 284 raise util.Abort(str(inst))
284 285
285 def shortkey(ui, key): 286 def shortkey(ui, key):
286 if len(key) != 16: 287 if len(key) != 16: