equal
deleted
inserted
replaced
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) |