Submitter | Yuya Nishihara |
---|---|
Date | Nov. 27, 2018, 12:57 p.m. |
Message ID | <47d8e701444c98d35579.1543323463@mimosa> |
Download | mbox | patch |
Permalink | /patch/36814/ |
State | Accepted |
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 618AF2C099; Tue, 27 Nov 2018 08:06:59 -0500 (EST) 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 SozaMYKyX0hG; Tue, 27 Nov 2018 08:06:36 -0500 (EST) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 7D2722C3B9; Tue, 27 Nov 2018 07:59:13 -0500 (EST) 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 3F3AA2C099 for <mercurial-devel@mercurial-scm.org>; Tue, 27 Nov 2018 07:59:11 -0500 (EST) 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 ghyhWjCjCBHM for <mercurial-devel@mercurial-scm.org>; Tue, 27 Nov 2018 07:58:47 -0500 (EST) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by mercurial-scm.org (Postfix) with ESMTPS id D006C2C09A for <mercurial-devel@mercurial-scm.org>; Tue, 27 Nov 2018 07:58:08 -0500 (EST) Received: by mail-pg1-x52e.google.com with SMTP id z11so7851255pgu.0 for <mercurial-devel@mercurial-scm.org>; Tue, 27 Nov 2018 04:58:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=gxuNP+1ZDPzFkoREPtfaVS79tDffxLQ/wMQJqEkF7ZY=; b=YjpnmxQOQMxmMQyBxFFl2/FqvkMmO7yjF92t+QSdAqmf6mcxaXZghgifySIkNDbKRH q14stEsP7bzGEPtuURtVzFmzeuoVcEZ8pqLgh6//2mr7+ASdY518bQ+DHKRWGPabwdOk 5T/OYrwQmmdZLsPtuwaoBV6K9RB5oPYsmFe/AayL/JV4NbqqfHK7QefhcBT9TJ/A8fqE 2sxaZjKlsM3dCEdErJSdUoY5d9uAoq2L2f7G9BNigj1KwPpe3Q1OGPQhD7BqggeLT+rn +FE2/m8QJBmbM7ZQxz+yKqWizCgpExBCAhBjyoRkPbhgDZzGiG2rLVvTOtSJzZYQCdXl wMaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=gxuNP+1ZDPzFkoREPtfaVS79tDffxLQ/wMQJqEkF7ZY=; b=iUFwqkeKgpErwZyEfXfSLAfB80Nd3v/VRXlkkpDdcVCWbH45oE6O4zw+wE3eIVNupg Cqqzr83mv5wEJEiyigzSaVvA8s5aYj7i28qoP21lkdO5QBhaqv9AHnSWbihkn8Sl1mlT uJi0q/nZg+qa/P6Vanj7Mc0eoS+zzCkSYbZx6kYRQHP656YdO3C82v8RXmWMk3BbQFgm pee/iTMtuTIEbRI+ufqsLaqizwAu6R2Ne+99CatAMI/A7Zaqi/jvJl1wYiBQ9EjMAqn+ LuxkkDX8khhGuRD2nH5bsd21glM063xvXCBUll9AHpBRPZQy+YNLaMzmL4Vvh/eTHuPh 0i4A== X-Gm-Message-State: AA+aEWaEEob5q18NwdxmOoyGHuNoUGmh6Ed3wAH0AX5AOnu9lLU+VvMT +/0Ziw9vnn8CJpWnQE9X005X+mHV X-Google-Smtp-Source: AFSGD/U9z3mN8mJiW6d78sLxJqJzaiHZmaI+ACKb6mj6LsZXLey9/bMvSQJAooCxB/05uXBLVTiPiA== X-Received: by 2002:a62:c185:: with SMTP id i127mr1265687pfg.43.1543323487602; Tue, 27 Nov 2018 04:58:07 -0800 (PST) Received: from [127.0.1.1] (p6e42500b.tkyea126.ap.so-net.ne.jp. [110.66.80.11]) by smtp.gmail.com with ESMTPSA id a90sm7886722pfj.109.2018.11.27.04.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 04:58:06 -0800 (PST) MIME-Version: 1.0 Subject: [PATCH 6 of 7] blackbox: do not nullify repo to deactivate the logger on failure X-Mercurial-Node: 47d8e701444c98d355794b1a398e25840557a2b1 X-Mercurial-Series-Index: 6 X-Mercurial-Series-Total: 7 Message-Id: <47d8e701444c98d35579.1543323463@mimosa> X-Mercurial-Series-Id: <ee25cad69149d0265270.1543323458@mimosa> In-Reply-To: <ee25cad69149d0265270.1543323458@mimosa> References: <ee25cad69149d0265270.1543323458@mimosa> User-Agent: Mercurial-patchbomb/4.8+339-0d94375b94a7 Date: Tue, 27 Nov 2018 21:57:43 +0900 From: Yuya Nishihara <yuya@tcha.org> 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
Yuya Nishihara - Nov. 27, 2018, 12:57 p.m.
Patch
diff --git a/hgext/blackbox.py b/hgext/blackbox.py --- a/hgext/blackbox.py +++ b/hgext/blackbox.py @@ -184,7 +184,7 @@ class blackboxlogger(object): fp.write(fmt % args) except (IOError, OSError) as err: # deactivate this to avoid failed logging again - self._repo = None + self._trackedevents.clear() ui.debug('warning: cannot write to blackbox.log: %s\n' % encoding.strtolocal(err.strerror))