mercurial/ui.py
changeset 39818 24e493ec2229
parent 39662 50f46b771921
child 39840 a9f56e4501c1
--- a/mercurial/ui.py	Mon Sep 24 22:46:22 2018 -0400
+++ b/mercurial/ui.py	Fri Sep 21 19:48:23 2018 -0400
@@ -447,7 +447,7 @@
         if section in (None, 'paths'):
             # expand vars and ~
             # translate paths relative to root (or home) into absolute paths
-            root = root or pycompat.getcwd()
+            root = root or encoding.getcwd()
             for c in self._tcfg, self._ucfg, self._ocfg:
                 for n, p in c.items('paths'):
                     # Ignore sub-options.