Skip to content
Snippets Groups Projects
Commit 691c68bc1222 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

ui: pass in bytes opts dict to logger.log()

This is the convention of the Mercurial API.
parent ffd574c144d2
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,6 @@
import os
from mercurial import (
pycompat,
)
from mercurial.utils import (
procutil,
)
......@@ -70,7 +67,7 @@
}
# keyword arguments get prefixed with OPT_ and uppercased
env.update((b'OPT_%s' % key.upper(), value)
for key, value in pycompat.byteskwargs(opts).items())
for key, value in opts.items())
fullenv = procutil.shellenviron(env)
procutil.runbgcommand(script, fullenv, shell=True)
......
......@@ -1742,6 +1742,7 @@
if not activeloggers:
return
msg = msgfmt % msgargs
opts = pycompat.byteskwargs(opts)
# guard against recursion from e.g. ui.debug()
registeredloggers = self._loggers
self._loggers = {}
......
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