Submitter | Yuya Nishihara |
---|---|
Date | Aug. 25, 2018, 9:46 a.m. |
Message ID | <21d6316839fbd3acd6da.1535190363@mimosa> |
Download | mbox | patch |
Permalink | /patch/34042/ |
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 44A712C094; Sat, 25 Aug 2018 05:46:18 -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 juOk-Cq4WPUv; Sat, 25 Aug 2018 05:46:17 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id D9D5F2C193; Sat, 25 Aug 2018 05:46:17 -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 6FE4C2C193 for <mercurial-devel@mercurial-scm.org>; Sat, 25 Aug 2018 05:46:16 -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 0G_Rs7TeLICt for <mercurial-devel@mercurial-scm.org>; Sat, 25 Aug 2018 05:46:16 -0400 (EDT) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by mercurial-scm.org (Postfix) with ESMTPS id 027622C094 for <mercurial-devel@mercurial-scm.org>; Sat, 25 Aug 2018 05:46:15 -0400 (EDT) Received: by mail-pf1-x434.google.com with SMTP id i26-v6so5597198pfo.12 for <mercurial-devel@mercurial-scm.org>; Sat, 25 Aug 2018 02:46:15 -0700 (PDT) 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 :user-agent:date:from:to; bh=EQggG269TNQE9orluqygOe2OU7W1D8icUkYEVixqCvk=; b=gWB6m3p/Y+GsY5v2bg3GiGK83/WTPkrr7o/TGDhAcX00iYdXy+qLVYVNPFXojez/5D CWVCFbHABrDtSbU7nSA/etf6+6S0UglVp2kxBQQ3uC1BblSY4ahHGztZnl7HxvRgoil0 2Wj+hX8SPqDBhSFu67YQ17GjjH3Uz96Vi3fODMe0zDMgWNN3qA6mkEa2AzubA31aX6RF o5tedw2+ixYDA0DgWgvuqGEe8GxGfcF7ituzf6QoiVUL/bnuzquqSUFSS46NVnTZqW8H FGfHZcVpcyJRrRRTwt9cqG1PiQo8uvbrQd8OT25i/nhC2EUKeB6snkmTx+98XcOoI6pF 5e8w== 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:user-agent:date:from:to; bh=EQggG269TNQE9orluqygOe2OU7W1D8icUkYEVixqCvk=; b=kjKLnMiAakiRZa9fbD5nxnLuWIwp1vXjb/1vs17vFB2HnMzM0PMKmo5LKOYJz4NGDF 1YXSG5hgxMfa+wYRrzEOwHSdSo9fTHOluOU4vYOFJl9X3GbekEm8bn1Itk8w+nwpZdbH xXDW/MzbYlny5KHydlOGbNOiYTAh112uA/0VOKw8WQY/FPHNIcEM0VVGmvxhz08o4mo8 GxuM8rw+CWb5XUr8BqP3ebqt4RrRO0yIL9dDBVkNpfS9qLUedPNwr4CHIMvVBETFXjug HHIO7DlOzP5JoEeltpm1827e1Ir4QLEhUNzjC3GRL/sb6wbRxt7UqOD7b244AhyRB5VC qoIQ== X-Gm-Message-State: APzg51Chx5Ui/cPRMCh8k8VYS5Nx0zducME3PR2+om8hzgQZT9XHXYhP nBa7OXAM32I401O+P3OPZNHG7Ubc X-Google-Smtp-Source: ANB0VdbpEP4mhv2hCukvwJ59kh95X8V4h7N7+n3WvgJS15agNqGTAx1YXvdce9qTaKKxP0jq6u72FA== X-Received: by 2002:a63:ea49:: with SMTP id l9-v6mr5068555pgk.427.1535190374962; Sat, 25 Aug 2018 02:46:14 -0700 (PDT) Received: from [127.0.1.1] (p6e42167e.tkyea126.ap.so-net.ne.jp. [110.66.22.126]) by smtp.gmail.com with ESMTPSA id 9-v6sm13602026pfc.20.2018.08.25.02.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Aug 2018 02:46:13 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 3] obsutil: make sure "addedrevs" is not None in getobsoleted() X-Mercurial-Node: 21d6316839fbd3acd6da8c061329a01490135f2c X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 3 Message-Id: <21d6316839fbd3acd6da.1535190363@mimosa> X-Mercurial-Series-Id: <21d6316839fbd3acd6da.1535190363@mimosa> User-Agent: Mercurial-patchbomb/4.7+462-66f046116105 Date: Sat, 25 Aug 2018 18:46:03 +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 - Aug. 25, 2018, 9:46 a.m.
Patch
diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py --- a/mercurial/obsutil.py +++ b/mercurial/obsutil.py @@ -465,7 +465,7 @@ def getobsoleted(repo, tr): succsmarkers = repo.obsstore.successors.get public = phases.public addedmarkers = tr.changes.get('obsmarkers') - addedrevs = tr.changes.get('revs') + addedrevs = tr.changes['revs'] seenrevs = set() obsoleted = set() for mark in addedmarkers: