mercurial/chgserver.py
changeset 33860 3cfc9070245f
parent 33499 0407a51b9d8c
child 34485 37b7581e5737
--- a/mercurial/chgserver.py	Fri Aug 18 11:08:17 2017 -0700
+++ b/mercurial/chgserver.py	Wed Aug 16 10:44:06 2017 -0700
@@ -565,8 +565,11 @@
                             self._hashstate, self._baseaddress)
 
 def chgunixservice(ui, repo, opts):
-    # CHGINTERNALMARK is temporarily set by chg client to detect if chg will
-    # start another chg. drop it to avoid possible side effects.
+    # CHGINTERNALMARK is set by chg client. It is an indication of things are
+    # started by chg so other code can do things accordingly, like disabling
+    # demandimport or detecting chg client started by chg client. When executed
+    # here, CHGINTERNALMARK is no longer useful and hence dropped to make
+    # environ cleaner.
     if 'CHGINTERNALMARK' in encoding.environ:
         del encoding.environ['CHGINTERNALMARK']