equal
deleted
inserted
replaced
152 if stdoutno >= 0 and stderrno >= 0: |
152 if stdoutno >= 0 and stderrno >= 0: |
153 sys.__stdout__.flush() |
153 sys.__stdout__.flush() |
154 oldstdout = os.dup(stdoutno) |
154 oldstdout = os.dup(stdoutno) |
155 os.dup2(stderrno, stdoutno) |
155 os.dup2(stderrno, stdoutno) |
156 except AttributeError: |
156 except AttributeError: |
157 # __stdout/err__ doesn't have fileno(), it's not a real file |
157 # __stdout__/__stderr__ doesn't have fileno(), it's not a real file |
158 pass |
158 pass |
159 |
159 |
160 try: |
160 try: |
161 for hname, cmd in _allhooks(ui): |
161 for hname, cmd in _allhooks(ui): |
162 if hname.split('.')[0] != name or not cmd: |
162 if hname.split('.')[0] != name or not cmd: |