Submitter | via Mercurial-devel |
---|---|
Date | July 6, 2017, 5:39 p.m. |
Message ID | <c5cf385ed9f35169e6d5.1499362765@martinvonz.svl.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/22026/ |
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 02F312C1CA; Thu, 6 Jul 2017 13:39:38 -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 2arPU7Pp5xsG; Thu, 6 Jul 2017 13:39:37 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id A36D82C1D6; Thu, 6 Jul 2017 13:39:37 -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 B8C782C1D6 for <mercurial-devel@mercurial-scm.org>; Thu, 6 Jul 2017 13:39:35 -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 UlximEd6DOCv for <mercurial-devel@mercurial-scm.org>; Thu, 6 Jul 2017 13:39:35 -0400 (EDT) Received: from mail-it0-x255.google.com (mail-it0-x255.google.com [IPv6:2607:f8b0:4001:c0b::255]) by mercurial-scm.org (Postfix) with ESMTPS id DF0742C20E for <mercurial-devel@mercurial-scm.org>; Thu, 6 Jul 2017 13:39:34 -0400 (EDT) Received: by mail-it0-x255.google.com with SMTP id k3so536ita.0 for <mercurial-devel@mercurial-scm.org>; Thu, 06 Jul 2017 10:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=4xbG7DPKFujKbWSDZcLAjSYP5O/4njwPsaD7ZVjarVg=; b=ZHKNU9rZLlBEw7H0NZa28vmDXVaa6y2kO6ybFBYcJWFio4WXXlwaJo7ED67lvR0tYI IIttyOEQev6Vr2zljxFbwyoEkwfqjhTToD8Ch+gKs6RFChPbxatuUMmGbcuvg0Vry5l8 daVASd5b8i2KZQesFLmOiw56OD//FEeqTF1Z2FalAWChgap9U2mc5Nv1H5vtKT8IDiPV fcAN962B1Ffmawwxq9+aPOSnJpyYHOK8+ynmWw/Wwdal2Bhg564Un76/GuiEnDtgvJ8A 0Hlb9bDRNCTNl5ilbCZaSR/4aVOM1FD9L7TD9t3vBQpDNJuDB6GnRMw2B7qOYYktJRxv 6F2w== 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=4xbG7DPKFujKbWSDZcLAjSYP5O/4njwPsaD7ZVjarVg=; b=fzNcmJb1Rg01plhrjwPKuyPrKaiqap9bn4I2FfBo8T9N/5m6QeolGLedwdfE/f+PAE 0uIL5COw4xbU3m1PNs2ZYuzmh/KGVqFtvi5+kubb/+HbH5nqm2Nq1aSuFZLH+OI4IWOI y2f0dUpS1H7KXexITm04wEN8CpQVGvGNRw+LncDzTKRy9EwgwHuA1PBEBk9+EAHS1FrE wxa/DZv3GzQaC/zye0WMwfHSix/DFU50byR3LormDBG864FcRQe7FZT4uLMVmmsCWQR2 8REfwpV+qfgNazWkK3DosgYlTKm2u2RhdeIVI6EIy/pO9Sh50p5UYQuQDbuXJE2KAOJo /EWw== X-Gm-Message-State: AIVw112gmreWN/63TeEzUx02OcXR3cNqGZFqeEneXcSuoIZ7Yf/ozJ2r W3zffHUdabrYcG/39cqmX5ZASzpp0fNT1gVOMepMHWSfFTG0bENrxdhaDwpVGD2KMMuFUFLysac 61BrNAp8AQZpjVYLM5NRnA/ykJVoMI+dQJK1h9pDUmqN9gHhgqY2yjg== X-Received: by 10.36.82.214 with SMTP id d205mr5714itb.0.1499362773734; Thu, 06 Jul 2017 10:39:33 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 4] mergestate: implement unresolvedcount() in terms of unresolved() X-Mercurial-Node: c5cf385ed9f35169e6d59376e7c3f704ac21d208 X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 4 Message-Id: <c5cf385ed9f35169e6d5.1499362765@martinvonz.svl.corp.google.com> X-Mercurial-Series-Id: <d4916d8e63be5ef5f3d6.1499362764@martinvonz.svl.corp.google.com> In-Reply-To: <d4916d8e63be5ef5f3d6.1499362764@martinvonz.svl.corp.google.com> References: <d4916d8e63be5ef5f3d6.1499362764@martinvonz.svl.corp.google.com> User-Agent: Mercurial-patchbomb/4.2.1+978-176030f695ca Date: Thu, 06 Jul 2017 10:39:25 -0700 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> From: Martin von Zweigbergk via Mercurial-devel <mercurial-devel@mercurial-scm.org> Reply-To: Martin von Zweigbergk <martinvonz@google.com> 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
via Mercurial-devel - July 6, 2017, 5:39 p.m.
Patch
diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -568,8 +568,7 @@ def unresolvedcount(self): """get unresolved count for this merge (persistent)""" - return len([True for f, entry in self._state.iteritems() - if entry[0] == 'u']) + return len(list(self.unresolved())) def actions(self): """return lists of actions to perform on the dirstate"""