diff -r 94c25f694ec3 -r 24e493ec2229 hgext/mq.py --- a/hgext/mq.py Mon Sep 24 22:46:22 2018 -0400 +++ b/hgext/mq.py Fri Sep 21 19:48:23 2018 -0400 @@ -3585,7 +3585,7 @@ raise error.Abort(_('only a local queue repository ' 'may be initialized')) else: - repopath = cmdutil.findrepo(pycompat.getcwd()) + repopath = cmdutil.findrepo(encoding.getcwd()) if not repopath: raise error.Abort(_('there is no Mercurial repository here ' '(.hg not found)'))