"Broken pipe" warnings since 57220daf40e9

Michal Kvasnica kvasnica at control.ee.ethz.ch
Sat Sep 24 10:34:16 CDT 2005


57220daf40e9 introduced following addition to commands.py:

--- a/mercurial/commands.py	Fri Sep 23 06:33:26 2005
+++ b/mercurial/commands.py	Fri Sep 23 07:05:16 2005
@@ -2160,6 +2160,8 @@
             u.warn("abort: %s\n" % inst)
         elif hasattr(inst, "reason"):
             u.warn("abort: error: %s\n" % inst.reason[1])
+        elif getattr(inst, "strerror", None):
+            u.warn("abort: %s\n" % inst.strerror)
         elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
             if u.debugflag:
                 u.warn("broken pipe\n")

which now throws a "Broken pipe" warning on every piped command, e.g.

$ hg log | head
changeset:   1347:e89033eb90a5
tag:         tip
user:        mpm at selenic.com
date:        Fri Sep 23 19:46:43 2005 -0700
summary:     Fix up static-http test

changeset:   1346:88a9c75dc76a
user:        mpm at selenic.com
date:        Fri Sep 23 19:46:12 2005 -0700
summary:     Execute hooks in the repository root
abort: Broken pipe
       ^^^^^^^^^^^

happens also on "hg log | more" or "hg log | less".


More information about the Mercurial mailing list