mercurial/wireprotoserver.py
changeset 39840 a9f56e4501c1
parent 39447 5f4a9ada5ab5
parent 39809 23a00bc90a3c
child 39933 d5498db5f86a
equal deleted inserted replaced
39839:9e8fcd2e78c1 39840:a9f56e4501c1
   781 class sshserver(object):
   781 class sshserver(object):
   782     def __init__(self, ui, repo, logfh=None):
   782     def __init__(self, ui, repo, logfh=None):
   783         self._ui = ui
   783         self._ui = ui
   784         self._repo = repo
   784         self._repo = repo
   785         self._fin, self._fout = procutil.protectstdio(ui.fin, ui.fout)
   785         self._fin, self._fout = procutil.protectstdio(ui.fin, ui.fout)
       
   786         # TODO: manage the redirection flag internally by ui
       
   787         ui._finoutredirected = (self._fin, self._fout) != (ui.fin, ui.fout)
   786 
   788 
   787         # Log write I/O to stdout and stderr if configured.
   789         # Log write I/O to stdout and stderr if configured.
   788         if logfh:
   790         if logfh:
   789             self._fout = util.makeloggingfileobject(
   791             self._fout = util.makeloggingfileobject(
   790                 logfh, self._fout, 'o', logdata=True)
   792                 logfh, self._fout, 'o', logdata=True)