diff mercurial/chgserver.py @ 41285:cf8677cd7286

ui: proxy protect/restorestdio() calls to update internal flag It should be better to manage the redirection flag solely by the ui class.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 26 Sep 2018 21:41:52 +0900
parents e7110f44ee2d
children 78027e7bc544
line wrap: on
line diff
--- a/mercurial/chgserver.py	Wed Sep 26 21:29:13 2018 +0900
+++ b/mercurial/chgserver.py	Wed Sep 26 21:41:52 2018 +0900
@@ -200,7 +200,7 @@
         def _runsystem(self, cmd, environ, cwd, out):
             # fallback to the original system method if
             #  a. the output stream is not stdout (e.g. stderr, cStringIO),
-            #  b. or stdout is redirected by protectstdio(),
+            #  b. or stdout is redirected by protectfinout(),
             # because the chg client is not aware of these situations and
             # will behave differently (i.e. write to stdout).
             if (out is not self.fout