Submitter | Bryan O'Sullivan |
---|---|
Date | April 10, 2017, 6:51 p.m. |
Message ID | <5134460363aeaac3c50f.1491850296@bryano-mbp.local> |
Download | mbox | patch |
Permalink | /patch/20091/ |
State | Changes Requested |
Headers | show
Return-Path: <mercurial-devel-bounces@mercurial-scm.org> X-Original-To: patchwork@mercurial-scm.org Delivered-To: patchwork@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 15ABC2C24B; Mon, 10 Apr 2017 14:51:49 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DtBmyIjAt4mP; Mon, 10 Apr 2017 14:51:48 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id E764A2C264; Mon, 10 Apr 2017 14:51:43 -0400 (EDT) X-Original-To: mercurial-devel@mercurial-scm.org Delivered-To: mercurial-devel@mercurial-scm.org Received: from localhost (localhost [127.0.0.1]) by mercurial-scm.org (Postfix) with ESMTP id 203262C1AD for <mercurial-devel@mercurial-scm.org>; Mon, 10 Apr 2017 14:51:42 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mercurial-scm.org Received: from mercurial-scm.org ([127.0.0.1]) by localhost (mercurial-scm.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J5U4lYERdWVG for <mercurial-devel@mercurial-scm.org>; Mon, 10 Apr 2017 14:51:41 -0400 (EDT) Received: from mail-pg0-x234.google.com (mail-pg0-x234.google.com [IPv6:2607:f8b0:400e:c05::234]) by mercurial-scm.org (Postfix) with ESMTPS id 4D5CE2C1CA for <mercurial-devel@mercurial-scm.org>; Mon, 10 Apr 2017 14:51:38 -0400 (EDT) Received: by mail-pg0-x234.google.com with SMTP id x125so110174148pgb.0 for <mercurial-devel@mercurial-scm.org>; Mon, 10 Apr 2017 11:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=serpentine-com.20150623.gappssmtp.com; s=20150623; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=5g7WcZxAalmLh0CijsXDf84PPBRno4SYlByqqFKS1vc=; b=LainR+q7ew3QdcqQcA2C/VnOnnwaLZuD+mppjQCV7RFGPPQXj6XUZwMfdrCevkJZjn X7cC+VO/jCczgobbS/NDPzmQvNfYkIMKCv8MU7WtgfpMFBOM3F/rRG/HrBiSybIkNK0L MSKbvHWGiXe6+AQckCUhXd+p+uiCSvbRwCxdKjJKnJ9HNM0aZnpBl7Wy6ArFzk//WxJP nfLGkuo7IjUitIqAdlk5Jns6sT3wOvVBXnfD8IFbUuEu3kQ1Tzlz9wm20cglB4OWJqVU N82Ki1FfH82hUbRPwjgfNazGYXZNVrTbIexJpoO8qFJmE9kP7Enp5DA2tItyS2DKj1mZ qsnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:subject :message-id:in-reply-to:references:user-agent:date:from:to; bh=5g7WcZxAalmLh0CijsXDf84PPBRno4SYlByqqFKS1vc=; b=OAgB0Oh4gg0ObKAl60gWVZwaIFAhPGvqZkcGSjP0YlI6MT70QPS7A5BT2yzRX/khBC W5WQBNfOEZnsONcS+dnIC1W4ckTqPbA/Mxx4Vq04F5LwUiCw8Rl4NwjJxsBJCnfy1JBb PmvAyTfXJhnen9i5mqOgO/dVslOUgaWBmsaI4heGF8eyU3jt0xRcDulL3z1Gd6iMthjb fbgjbThtby4J/+nDKNGUwuXI/kgjY2ZHYP02NWxZtTq2ZWOLx7lVlXAt2z7hDv31BKGr XNxDbDsiKGBmTn8Gr+XhhZ/TMAmkPj+Sfk2lOiu1PLIcVPTWFfdEmSyw+8/XKGTkGWxD BS2w== X-Gm-Message-State: AN3rC/4Fca1qVhkUM3/tCPrd8l+FDI2K9IU2Kn/Sse3F37+Dzn7XIawruVoaXfVhROoq1w== X-Received: by 10.98.166.21 with SMTP id t21mr10538105pfe.120.1491850297393; Mon, 10 Apr 2017 11:51:37 -0700 (PDT) Received: from bryano-mbp.local ([76.14.35.34]) by smtp.gmail.com with ESMTPSA id j73sm26047133pfj.70.2017.04.10.11.51.36 for <mercurial-devel@mercurial-scm.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2017 11:51:36 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 6 of 9] stdio: raise StdioError if something goes wrong in ui._write X-Mercurial-Node: 5134460363aeaac3c50f982c611a113344923155 X-Mercurial-Series-Index: 6 X-Mercurial-Series-Total: 9 Message-Id: <5134460363aeaac3c50f.1491850296@bryano-mbp.local> X-Mercurial-Series-Id: <fdc0de79d651dccee118.1491850291@bryano-mbp.local> In-Reply-To: <fdc0de79d651dccee118.1491850291@bryano-mbp.local> References: <fdc0de79d651dccee118.1491850291@bryano-mbp.local> User-Agent: Mercurial-patchbomb/4.1.1+758-c8dc34320f65 Date: Mon, 10 Apr 2017 11:51:36 -0700 From: Bryan O'Sullivan <bos@serpentine.com> To: mercurial-devel@mercurial-scm.org X-BeenThere: mercurial-devel@mercurial-scm.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <mercurial-devel.mercurial-scm.org> List-Unsubscribe: <https://www.mercurial-scm.org/mailman/options/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=unsubscribe> List-Archive: <http://www.mercurial-scm.org/pipermail/mercurial-devel/> List-Post: <mailto:mercurial-devel@mercurial-scm.org> List-Help: <mailto:mercurial-devel-request@mercurial-scm.org?subject=help> List-Subscribe: <https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel>, <mailto:mercurial-devel-request@mercurial-scm.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: mercurial-devel-bounces@mercurial-scm.org Sender: "Mercurial-devel" <mercurial-devel-bounces@mercurial-scm.org> |
Comments
Bryan O'Sullivan - April 10, 2017, 6:51 p.m.
Patch
diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -765,6 +765,8 @@ class ui(object): try: for a in msgs: self.fout.write(a) + except IOError as err: + error.raisestdio(err) finally: self._blockedtimes['stdio_blocked'] += \ (util.timer() - starttime) * 1000