changeset 36111:b44a47214122

py3: use string for "close" value in commit extras The extras dict on commits has string keys and values. Before this commit, we passed "close" as an integer, which Python 2 gladly coerced to a string during a %s formatting in the bowels of changelog.py. Differential Revision: https://phab.mercurial-scm.org/D2157
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 11 Feb 2018 16:21:30 -0800
parents 230489fc0b41
children 6426878f7f0f
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Feb 11 16:16:43 2018 -0800
+++ b/mercurial/commands.py	Sun Feb 11 16:21:30 2018 -0800
@@ -1551,7 +1551,7 @@
 
     extra = {}
     if opts.get('close_branch'):
-        extra['close'] = 1
+        extra['close'] = '1'
 
         if not bheads:
             raise error.Abort(_('can only close branch heads'))