Mercurial > hg
comparison hgext/shelve.py @ 22005:dabf8fb8a91e
shelve: 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:
- 'shelve' is used as COMMAND
- ROUTE is omitted
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sat, 02 Aug 2014 21:46:26 +0900 |
parents | 37a5decc6924 |
children | 122fa73657c6 |
comparison
equal
deleted
inserted
replaced
22004:3646716b11a7 | 22005:dabf8fb8a91e |
---|---|
176 shelvedfiles.extend(flist) | 176 shelvedfiles.extend(flist) |
177 hasmq = util.safehasattr(repo, 'mq') | 177 hasmq = util.safehasattr(repo, 'mq') |
178 if hasmq: | 178 if hasmq: |
179 saved, repo.mq.checkapplied = repo.mq.checkapplied, False | 179 saved, repo.mq.checkapplied = repo.mq.checkapplied, False |
180 try: | 180 try: |
181 editor = cmdutil.getcommiteditor(editform='shelve.shelve', **opts) | |
181 return repo.commit(message, user, opts.get('date'), match, | 182 return repo.commit(message, user, opts.get('date'), match, |
182 editor=cmdutil.getcommiteditor(**opts)) | 183 editor=editor) |
183 finally: | 184 finally: |
184 if hasmq: | 185 if hasmq: |
185 repo.mq.checkapplied = saved | 186 repo.mq.checkapplied = saved |
186 | 187 |
187 if parent.node() != nullid: | 188 if parent.node() != nullid: |