--- a/mercurial/color.py Thu Mar 22 21:19:31 2018 +0900
+++ b/mercurial/color.py Thu Mar 22 21:56:20 2018 +0900
@@ -14,7 +14,10 @@
from . import (
encoding,
pycompat,
- util
+)
+
+from .utils import (
+ stringutil,
)
try:
@@ -200,7 +203,7 @@
auto = (config == 'auto')
always = False
- if not auto and util.parsebool(config):
+ if not auto and stringutil.parsebool(config):
# We want the config to behave like a boolean, "on" is actually auto,
# but "always" value is treated as a special case to reduce confusion.
if ui.configsource('ui', 'color') == '--color' or config == 'always':