"Broken pipe" warnings since 57220daf40e9
Matt Mackall
mpm at selenic.com
Mon Sep 26 16:19:49 CDT 2005
On Sat, Sep 24, 2005 at 05:34:16PM +0200, Michal Kvasnica wrote:
> 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".
Thanks. Fixed in tip.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list