Mercurial > public > mercurial-scm > hg
comparison mercurial/hook.py @ 17428:72803c8edaa4
avoid using abbreviations that look like spelling errors
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 27 Aug 2012 23:14:27 +0200 |
parents | 98166640b356 |
children | 6180dcb29ec5 |
comparison
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: |