mercurial/chgserver.py
changeset 50550 55886050a583
parent 49275 c6a3243567b6
child 50551 62a1ef6d2811
equal deleted inserted replaced
50549:037890ecaff5 50550:55886050a583
   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()