Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 39818:24e493ec2229
py3: rename pycompat.getcwd() to encoding.getcwd() (API)
We need to avoid os.getcwdb() on Windows to avoid DeprecationWarnings, and we
need encoding.strtolocal() to encode the result of os.getcwd().
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 21 Sep 2018 19:48:23 -0400 |
parents | b53ec524420b |
children | 1a184b727aff |
line wrap: on
line diff
--- 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)'))