[PATCH 11 of 15] tag: pass 'editform' argument to 'cmdutil.getcommiteditor'
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Sat Aug 2 08:02:20 CDT 2014
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1406983587 -32400
# Sat Aug 02 21:46:27 2014 +0900
# Node ID 2fc8ca7fb013d9ea652f184243ef94f36122d73a
# Parent 87ac4b4b2cdf1fd7c33567a6f0b29431f9ec513a
tag: 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, 'add' and 'remove' are used as ROUTE
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5786,7 +5786,11 @@
if date:
date = util.parsedate(date)
- editor = cmdutil.getcommiteditor(**opts)
+ if opts.get('remove'):
+ editform = 'tag.remove'
+ else:
+ editform = 'tag.add'
+ editor = cmdutil.getcommiteditor(editform=editform, **opts)
# don't allow tagging the null rev
if (not opts.get('remove') and
More information about the Mercurial-devel
mailing list