mercurial/dirstate.py
changeset 30634 ad15646dc61c
parent 30614 cfe66dcf45c0
child 31050 206532700213
--- a/mercurial/dirstate.py	Tue Dec 20 20:28:41 2016 -0800
+++ b/mercurial/dirstate.py	Sun Dec 18 01:34:41 2016 +0530
@@ -67,7 +67,7 @@
 
     This returns '(fp, is_pending_opened)' tuple.
     '''
-    if root == os.environ.get('HG_PENDING'):
+    if root == encoding.environ.get('HG_PENDING'):
         try:
             return (vfs('%s.pending' % filename), True)
         except IOError as inst: