Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 836:1fe3b14c7044
Merge with TAH
author | mpm@selenic.com |
---|---|
date | Thu, 04 Aug 2005 13:27:41 -0800 |
parents | 16700cdd9055 b65773f7db41 |
children | 9c918287d10b |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Aug 04 13:25:59 2005 -0800 +++ b/mercurial/commands.py Thu Aug 04 13:27:41 2005 -0800 @@ -1419,7 +1419,14 @@ except SignalInterrupt: u.warn("killed!\n") except KeyboardInterrupt: - u.warn("interrupted!\n") + try: + u.warn("interrupted!\n") + except IOError, inst: + if inst.errno == errno.EPIPE: + if u.debugflag: + u.warn("\nbroken pipe\n") + else: + raise except IOError, inst: if hasattr(inst, "code"): u.warn("abort: %s\n" % inst)