Mercurial > hg
comparison hgext/split.py @ 36400:7b86aa31b004
py3: fix handling of keyword arguments at more places
The keys of keyword arguments of Python 3 should be str, which is why we need to
prevent getting the b'' prefix added by the transformer or convert keys to str
using pycompat.strkwargs()
Differential Revision: https://phab.mercurial-scm.org/D2420
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 24 Feb 2018 16:18:40 +0530 |
parents | 02ea370c2baa |
children | 83bade6206d4 |
comparison
equal
deleted
inserted
replaced
36399:a24c57f1f5c3 | 36400:7b86aa31b004 |
---|---|
22 commands, | 22 commands, |
23 error, | 23 error, |
24 hg, | 24 hg, |
25 obsolete, | 25 obsolete, |
26 phases, | 26 phases, |
27 pycompat, | |
27 registrar, | 28 registrar, |
28 revsetlang, | 29 revsetlang, |
29 scmutil, | 30 scmutil, |
30 ) | 31 ) |
31 | 32 |
158 opts.update({ | 159 opts.update({ |
159 'edit': True, | 160 'edit': True, |
160 'interactive': True, | 161 'interactive': True, |
161 'message': header + ctx.description(), | 162 'message': header + ctx.description(), |
162 }) | 163 }) |
163 commands.commit(ui, repo, **opts) | 164 commands.commit(ui, repo, **pycompat.strkwargs(opts)) |
164 newctx = repo['.'] | 165 newctx = repo['.'] |
165 committed.append(newctx) | 166 committed.append(newctx) |
166 | 167 |
167 if not committed: | 168 if not committed: |
168 raise error.Abort(_('cannot split an empty revision')) | 169 raise error.Abort(_('cannot split an empty revision')) |