Show More
@@ -235,6 +235,15 b' def _newchgui(srcui, csystem):' | |||||
235 |
|
235 | |||
236 | def system(self, cmd, environ=None, cwd=None, onerr=None, |
|
236 | def system(self, cmd, environ=None, cwd=None, onerr=None, | |
237 | errprefix=None): |
|
237 | errprefix=None): | |
|
238 | # fallback to the original system method if the output needs to be | |||
|
239 | # captured (to self._buffers), or the output stream is not stdout | |||
|
240 | # (e.g. stderr, cStringIO), because the chg client is not aware of | |||
|
241 | # these situations and will behave differently (write to stdout). | |||
|
242 | if (any(s[1] for s in self._bufferstates) | |||
|
243 | or not util.safehasattr(self.fout, 'fileno') | |||
|
244 | or self.fout.fileno() != sys.stdout.fileno()): | |||
|
245 | return super(chgui, self).system(cmd, environ, cwd, onerr, | |||
|
246 | errprefix) | |||
238 | # copied from mercurial/util.py:system() |
|
247 | # copied from mercurial/util.py:system() | |
239 | self.flush() |
|
248 | self.flush() | |
240 | def py2shell(val): |
|
249 | def py2shell(val): |
General Comments 0
You need to be logged in to leave comments.
Login now