Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 250:45ee7c4cae4f
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-----
author | mpm@selenic.com |
---|---|
date | Sat, 04 Jun 2005 14:25:08 -0800 |
parents | 619e775aa7f9 |
children | 5eda6c542978 |
comparison
equal
deleted
inserted
replaced
249:619e775aa7f9 | 250:45ee7c4cae4f |
---|---|
569 return d() | 569 return d() |
570 except SignalInterrupt: | 570 except SignalInterrupt: |
571 u.warn("killed!\n") | 571 u.warn("killed!\n") |
572 except KeyboardInterrupt: | 572 except KeyboardInterrupt: |
573 u.warn("interrupted!\n") | 573 u.warn("interrupted!\n") |
574 except IOError, inst: | |
575 if inst.errno == 32: | |
576 u.warn("broken pipe\n") | |
577 else: | |
578 raise | |
574 except TypeError, inst: | 579 except TypeError, inst: |
575 import traceback | 580 import traceback |
576 # was this an argument error? | 581 # was this an argument error? |
577 tb = traceback.extract_tb(sys.exc_info()[2]) | 582 tb = traceback.extract_tb(sys.exc_info()[2]) |
578 if len(tb) > 2: # no | 583 if len(tb) > 2: # no |