Submitter | Katsunori FUJIWARA |
---|---|
Date | Aug. 2, 2014, 1:02 p.m. |
Message ID | <2fc8ca7fb013d9ea652f.1406984540@feefifofum> |
Download | mbox | patch |
Permalink | /patch/5238/ |
State | Accepted |
Commit | 0bbe8ef901d1983254bc422fd011b8ca93fbbd78 |
Headers | show |
Comments
Patch
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