hgext/logtoprocess.py
changeset 39885 566cc633e637
parent 39836 f1d6021453c2
child 39926 c4a3d3c67c4f
--- a/hgext/logtoprocess.py	Wed Sep 26 22:21:25 2018 -0400
+++ b/hgext/logtoprocess.py	Wed Sep 26 18:30:19 2018 -0400
@@ -40,7 +40,6 @@
 import sys
 
 from mercurial import (
-    encoding,
     pycompat,
 )
 
@@ -128,7 +127,7 @@
                 optpairs = (
                     ('OPT_{0}'.format(key.upper()), str(value))
                     for key, value in opts.iteritems())
-                env = dict(itertools.chain(encoding.environ.items(),
+                env = dict(itertools.chain(procutil.shellenviron().items(),
                                            msgpairs, optpairs),
                            EVENT=event, HGPID=str(os.getpid()))
                 runshellcommand(script, env)