equal
deleted
inserted
replaced
234 # b. or stdout is redirected by protectfinout(), |
234 # b. or stdout is redirected by protectfinout(), |
235 # because the chg client is not aware of these situations and |
235 # because the chg client is not aware of these situations and |
236 # will behave differently (i.e. write to stdout). |
236 # will behave differently (i.e. write to stdout). |
237 if ( |
237 if ( |
238 out is not self.fout |
238 out is not self.fout |
239 or not util.safehasattr(self.fout, b'fileno') |
239 or not util.safehasattr(self.fout, 'fileno') |
240 or self.fout.fileno() != procutil.stdout.fileno() |
240 or self.fout.fileno() != procutil.stdout.fileno() |
241 or self._finoutredirected |
241 or self._finoutredirected |
242 ): |
242 ): |
243 return procutil.system(cmd, environ=environ, cwd=cwd, out=out) |
243 return procutil.system(cmd, environ=environ, cwd=cwd, out=out) |
244 self.flush() |
244 self.flush() |