mercurial/chgserver.py
changeset 31695 d73490957d61
parent 31690 2d11d278279a
child 31954 e518192d6bac
--- a/mercurial/chgserver.py	Tue Mar 28 07:57:56 2017 -0700
+++ b/mercurial/chgserver.py	Tue Mar 28 08:40:12 2017 -0700
@@ -213,8 +213,8 @@
     # stolen from tortoisehg.util.copydynamicconfig()
     for section, name, value in srcui.walkconfig():
         source = srcui.configsource(section, name)
-        if ':' in source or source == '--config':
-            # path:line or command line
+        if ':' in source or source == '--config' or source.startswith('$'):
+            # path:line or command line, or environ
             continue
         newui.setconfig(section, name, value, source)