Mercurial > hg
comparison mercurial/cmdutil.py @ 22010:41e969cb9468
commit: 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, 'normal' and 'amend' are used as ROUTE.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 02 Aug 2014 21:46:27 +0900 |
parents | 6ce282ed801e |
children | 97acb4504704 |
comparison
equal
deleted
inserted
replaced
22009:0bbe8ef901d1 | 22010:41e969cb9468 |
---|---|
2104 except KeyError: | 2104 except KeyError: |
2105 raise IOError | 2105 raise IOError |
2106 | 2106 |
2107 user = opts.get('user') or old.user() | 2107 user = opts.get('user') or old.user() |
2108 date = opts.get('date') or old.date() | 2108 date = opts.get('date') or old.date() |
2109 editor = getcommiteditor(**opts) | 2109 editform = 'commit.amend' |
2110 editor = getcommiteditor(editform=editform, **opts) | |
2110 if not message: | 2111 if not message: |
2111 editor = getcommiteditor(edit=True) | 2112 editor = getcommiteditor(edit=True, editform=editform) |
2112 message = old.description() | 2113 message = old.description() |
2113 | 2114 |
2114 pureextra = extra.copy() | 2115 pureextra = extra.copy() |
2115 extra['amend_source'] = old.hex() | 2116 extra['amend_source'] = old.hex() |
2116 | 2117 |