comparison mercurial/commands.py @ 22008:b02ab548ab5c

graft: pass 'editform' argument to 'cmdutil.getcommiteditor' This patch passes 'editform' argument according to the format below: COMMAND[.ROUTE] - ROUTE: name of route, if there are two or more routes in COMMAND In this patch, ROUTE is omitted.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Sat, 02 Aug 2014 21:46:27 +0900
parents a5bb0c4001ae
children 0bbe8ef901d1
comparison
equal deleted inserted replaced
22007:a5bb0c4001ae 22008:b02ab548ab5c
3126 if not opts.get('user') and opts.get('currentuser'): 3126 if not opts.get('user') and opts.get('currentuser'):
3127 opts['user'] = ui.username() 3127 opts['user'] = ui.username()
3128 if not opts.get('date') and opts.get('currentdate'): 3128 if not opts.get('date') and opts.get('currentdate'):
3129 opts['date'] = "%d %d" % util.makedate() 3129 opts['date'] = "%d %d" % util.makedate()
3130 3130
3131 editor = cmdutil.getcommiteditor(**opts) 3131 editor = cmdutil.getcommiteditor(editform='graft', **opts)
3132 3132
3133 cont = False 3133 cont = False
3134 if opts['continue']: 3134 if opts['continue']:
3135 cont = True 3135 cont = True
3136 if revs: 3136 if revs: