mercurial/ui.py
changeset 9887 38170eeed18c
parent 9851 9e7b2c49d25d
child 10077 89617aacb495
--- a/mercurial/ui.py	Sun Nov 08 00:27:15 2009 +0100
+++ b/mercurial/ui.py	Thu Nov 19 10:32:33 2009 +0100
@@ -29,8 +29,11 @@
             self._ocfg = src._ocfg.copy()
             self._trustusers = src._trustusers.copy()
             self._trustgroups = src._trustgroups.copy()
+            self.environ = src.environ
             self.fixconfig()
         else:
+            # shared read-only environment
+            self.environ = os.environ
             # we always trust global config files
             for f in util.rcpath():
                 self.readconfig(f, trust=True)