hgext/convert/cvsps.py
changeset 30638 1c5cbf28f007
parent 30616 6f9fcd29e290
child 31408 6e3c79bc9a35
--- a/hgext/convert/cvsps.py	Sun Dec 18 02:06:00 2016 +0530
+++ b/hgext/convert/cvsps.py	Sun Dec 18 02:08:59 2016 +0530
@@ -11,6 +11,7 @@
 
 from mercurial.i18n import _
 from mercurial import (
+    encoding,
     hook,
     pycompat,
     util,
@@ -147,7 +148,7 @@
             pass
 
     if not root:
-        root = os.environ.get('CVSROOT', '')
+        root = encoding.environ.get('CVSROOT', '')
 
     # read log cache if one exists
     oldlog = []