# HG changeset patch # User mpm@selenic.com # Date 1117923908 28800 # Node ID 45ee7c4cae4fdf54ba44cc8249e6d16880dbf09b # Parent 619e775aa7f9166c09555c8b7cbd70b50a1f4723 Catch broken pipes in command interpreter -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Catch broken pipes in command interpreter manifest hash: b1550ec705836af571bf0c0921d9e768ac5e5e80 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCoipEywK+sNU5EO8RAg2WAKCu3NUArYzOX2UwGj8pv3AnDQCwoQCffPWk RcaNt0+COwST2FlbQQOxEk8= =jbZG -----END PGP SIGNATURE----- diff -r 619e775aa7f9 -r 45ee7c4cae4f mercurial/commands.py --- a/mercurial/commands.py Sat Jun 04 14:16:32 2005 -0800 +++ b/mercurial/commands.py Sat Jun 04 14:25:08 2005 -0800 @@ -571,6 +571,11 @@ u.warn("killed!\n") except KeyboardInterrupt: u.warn("interrupted!\n") + except IOError, inst: + if inst.errno == 32: + u.warn("broken pipe\n") + else: + raise except TypeError, inst: import traceback # was this an argument error?