mercurial/hook.py
changeset 17428 72803c8edaa4
parent 17251 98166640b356
child 17963 6180dcb29ec5
equal deleted inserted replaced
17427:57c6c24b9bc4 17428:72803c8edaa4
   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: