Skip to content
Snippets Groups Projects
Commit f506f306 authored by Manuel Jacob's avatar Manuel Jacob
Browse files

py3: use pycompat.byteskwargs

parent ce3c2d71
No related branches found
No related tags found
1 merge request!21Make tests pass on Python 3
Pipeline #5771 passed with warnings
......@@ -2,7 +2,7 @@
from __future__ import absolute_import, print_function
from mercurial import cmdutil, commands, scmutil
from mercurial import cmdutil, commands, pycompat, scmutil
cmdtable = {}
try:
......@@ -24,5 +24,5 @@
for field in fields:
k, v = field.split(b'=', 1)
extras[k] = v
message = cmdutil.logmessage(ui, opts)
message = cmdutil.logmessage(ui, pycompat.byteskwargs(opts))
repo.commit(message, opts.get('user'), opts.get('date'),
......@@ -28,3 +28,5 @@
repo.commit(message, opts.get('user'), opts.get('date'),
match=scmutil.match(repo[None], pats, opts), extra=extras)
match=scmutil.match(repo[None], pats,
pycompat.byteskwargs(opts)),
extra=extras)
return 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment