equal
deleted
inserted
replaced
230 # captured (to self._buffers), or the output stream is not stdout |
230 # captured (to self._buffers), or the output stream is not stdout |
231 # (e.g. stderr, cStringIO), because the chg client is not aware of |
231 # (e.g. stderr, cStringIO), because the chg client is not aware of |
232 # these situations and will behave differently (write to stdout). |
232 # these situations and will behave differently (write to stdout). |
233 if (any(s[1] for s in self._bufferstates) |
233 if (any(s[1] for s in self._bufferstates) |
234 or not util.safehasattr(self.fout, 'fileno') |
234 or not util.safehasattr(self.fout, 'fileno') |
235 or self.fout.fileno() != sys.stdout.fileno()): |
235 or self.fout.fileno() != util.stdout.fileno()): |
236 return super(chgui, self).system(cmd, environ, cwd, onerr, |
236 return super(chgui, self).system(cmd, environ, cwd, onerr, |
237 errprefix) |
237 errprefix) |
238 # copied from mercurial/util.py:system() |
238 # copied from mercurial/util.py:system() |
239 self.flush() |
239 self.flush() |
240 def py2shell(val): |
240 def py2shell(val): |