# HG changeset patch # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp> # Date 2014-08-02 12:46:26 # Node ID dabf8fb8a91ed974dae10d7f70f8e2d2f9204cbf # Parent 3646716b11a7d617039dfc8b6acbbebd0519bdbd 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 diff --git a/hgext/shelve.py b/hgext/shelve.py --- a/hgext/shelve.py +++ b/hgext/shelve.py @@ -178,8 +178,9 @@ def createcmd(ui, repo, pats, opts): if hasmq: saved, repo.mq.checkapplied = repo.mq.checkapplied, False try: + editor = cmdutil.getcommiteditor(editform='shelve.shelve', **opts) return repo.commit(message, user, opts.get('date'), match, - editor=cmdutil.getcommiteditor(**opts)) + editor=editor) finally: if hasmq: repo.mq.checkapplied = saved