diff mercurial/dirstate.py @ 39823: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 481db51c83e9
children 7caf632e30c3
line wrap: on
line diff
--- a/mercurial/dirstate.py	Mon Sep 24 22:46:22 2018 -0400
+++ b/mercurial/dirstate.py	Fri Sep 21 19:48:23 2018 -0400
@@ -210,7 +210,7 @@
         forcecwd = self._ui.config('ui', 'forcecwd')
         if forcecwd:
             return forcecwd
-        return pycompat.getcwd()
+        return encoding.getcwd()
 
     def getcwd(self):
         '''Return the path from which a canonical path is calculated.