diff -r a8b17859684a -r 20a42325fdef mercurial/dispatch.py --- a/mercurial/dispatch.py Wed Aug 17 20:57:15 2016 -0700 +++ b/mercurial/dispatch.py Wed Nov 23 00:03:11 2016 +0530 @@ -880,7 +880,7 @@ if not path: raise error.RepoError(_("no repository found in" " '%s' (.hg not found)") - % os.getcwd()) + % pycompat.getcwd()) raise if repo: ui = repo.ui