diff -r a8b17859684a -r 20a42325fdef hgext/mq.py --- a/hgext/mq.py Wed Aug 17 20:57:15 2016 -0700 +++ b/hgext/mq.py Wed Nov 23 00:03:11 2016 +0530 @@ -87,6 +87,7 @@ lock as lockmod, patch as patchmod, phases, + pycompat, registrar, revset, scmutil, @@ -3523,7 +3524,7 @@ raise error.Abort(_('only a local queue repository ' 'may be initialized')) else: - repopath = cmdutil.findrepo(os.getcwd()) + repopath = cmdutil.findrepo(pycompat.getcwd()) if not repopath: raise error.Abort(_('there is no Mercurial repository here ' '(.hg not found)'))