Read about our upcoming Code of Conduct on this issue

Commit c7766e82 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

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
parent 230489fc0b41
......@@ -1551,7 +1551,7 @@ def _docommit(ui, repo, *pats, **opts):
extra = {}
if opts.get('close_branch'):
extra['close'] = 1
extra['close'] = '1'
if not bheads:
raise error.Abort(_('can only close branch heads'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment