Mercurial > hg
comparison mercurial/commands.py @ 367:73ea73ab3359
Use errno.EPIPE rather than 32
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use errno.EPIPE rather than 32
manifest hash: c9cb2fadf7ef4392b2f16b3f76ca2a39964b7ae0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCsNNOywK+sNU5EO8RAudrAKCGKfgsHmSLdt5HYpUtX4S/QSFCQgCeKb7M
Qld4CLe1M3aktU0tugb51Gs=
=1LB7
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 15 Jun 2005 17:18:06 -0800 |
parents | f94d3632a323 |
children | 6e3436082697 |
comparison
equal
deleted
inserted
replaced
366:21306bd3e0f5 | 367:73ea73ab3359 |
---|---|
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 | 7 |
8 import os, re, sys, signal | 8 import os, re, sys, signal |
9 import fancyopts, ui, hg | 9 import fancyopts, ui, hg |
10 from demandload import * | 10 from demandload import * |
11 demandload(globals(), "mdiff time hgweb traceback random signal") | 11 demandload(globals(), "mdiff time hgweb traceback random signal errno") |
12 | 12 |
13 class UnknownCommand(Exception): pass | 13 class UnknownCommand(Exception): pass |
14 | 14 |
15 def filterfiles(filters, files): | 15 def filterfiles(filters, files): |
16 l = [ x for x in files if x in filters ] | 16 l = [ x for x in files if x in filters ] |
741 except SignalInterrupt: | 741 except SignalInterrupt: |
742 u.warn("killed!\n") | 742 u.warn("killed!\n") |
743 except KeyboardInterrupt: | 743 except KeyboardInterrupt: |
744 u.warn("interrupted!\n") | 744 u.warn("interrupted!\n") |
745 except IOError, inst: | 745 except IOError, inst: |
746 if inst.errno == 32: | 746 if inst.errno == errno.EPIPE: |
747 u.warn("broken pipe\n") | 747 u.warn("broken pipe\n") |
748 else: | 748 else: |
749 raise | 749 raise |
750 except TypeError, inst: | 750 except TypeError, inst: |
751 # was this an argument error? | 751 # was this an argument error? |