diff -r f99d64e8a4e4 -r f0b6fbea00cf mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/localrepo.py Thu Mar 22 21:56:20 2018 +0900 @@ -64,6 +64,9 @@ util, vfs as vfsmod, ) +from .utils import ( + stringutil, +) release = lockmod.release urlerr = util.urlerr @@ -263,7 +266,7 @@ raise except error.PushRaced as exc: raise error.ResponseError(_('push failed:'), - util.forcebytestr(exc)) + stringutil.forcebytestr(exc)) # End of _basewirecommands interface.