Submitter | Yuya Nishihara |
---|---|
Date | Sept. 2, 2016, 2:58 p.m. |
Message ID | <04d0742aa7ecb239a06b.1472828291@mimosa> |
Download | mbox | patch |
Permalink | /patch/16531/ |
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 BC6202C18F; Fri, 2 Sep 2016 10:58:31 -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 904ZNqcjvxKQ; Fri, 2 Sep 2016 10:58:31 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 6FF692C198; Fri, 2 Sep 2016 10:58:30 -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 5405F2C18F for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:29 -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 HzdVApK9FZRN for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:28 -0400 (EDT) Received: from mail-pa0-x244.google.com (mail-pa0-x244.google.com [IPv6:2607:f8b0:400e:c03::244]) by mercurial-scm.org (Postfix) with ESMTPS id B7B5E2C1A0 for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:28 -0400 (EDT) Received: by mail-pa0-x244.google.com with SMTP id ez1so5644694pab.3 for <mercurial-devel@mercurial-scm.org>; Fri, 02 Sep 2016 07:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=oo3DUdBF+6p18w5qXZGCmvC9bipsB3YzONmDD8AaznQ=; b=qWQ6XBdhp93D6mSKiFVoLlcJovoErVEZ0ZHao3Qthgg9HfYJ72S0VLEDq14ku2gyen p2qCVmzdNzstkqs9PYTAtG1HN6YU4dU3xlL1Mpwimfwi/rjxFHvs7sGsPdFs/PRS9cYH xrQNCQgGNjSULJiBgEB/eKnlLZOTKyJgXXguOlMVRH8xnozj7ZttOPW5RFdO2qWLpspN 9aRzQb82KTy8xPJsNzpLwT0qZDH2YzPp6Rzi+RonVAC3iQKHxnWSAGbEYfWBLwtY6FJr dbQj+qrMj57oYi5Yd7ml3B9c7el6g1Wy9PgHJnuqOWpo7V7f71OMQG6n78MJpFbBgEj5 LIMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:mime-version:content-transfer-encoding :subject:message-id:in-reply-to:references:user-agent:date:from:to; bh=oo3DUdBF+6p18w5qXZGCmvC9bipsB3YzONmDD8AaznQ=; b=A9Ly93QOhrmVhOGJDwSglnLBwMRr5chHzrhjyMgbrvYybQSvLaABAqKYUmk/grTgAa YKHTeZu3sb7n2g4gMqAA0VakO2OpivylKPjEbQE9Ad85GfGJuP0/krZV8CNXFkHqOzHN 8d/f7F8+3WG8WC6jistdHi4kmRqZpkav6WfnxogQNUccK1HJCFtfLHr+sJd3d9W2xuW2 1DBc1pY0LLfa7k9Hyb+plGRvsRQf79cfeO2O7egNyawXeUUbvCWV+JhDS49hMksW0ghl /FViURiznOFwOfJ9YPc4eRe6/OG6wNlX9r0P95xvoyn/yBJqzi1PJafumdCWaDzKBY3g CVHg== X-Gm-Message-State: AE9vXwP1EPZ0JgE+u9NqH3LNwT5wu7s0SwKm6GKdTVYpfzKtkLM3Ojeycswne7yDGwicEA== X-Received: by 10.66.253.101 with SMTP id zz5mr36900784pac.32.1472828307763; Fri, 02 Sep 2016 07:58:27 -0700 (PDT) Received: from [127.0.1.1] (pdb627384.tkyea104.ap.so-net.ne.jp. [219.98.115.132]) by smtp.gmail.com with ESMTPSA id z10sm15504994pff.95.2016.09.02.07.58.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 07:58:26 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 3] revset: remove false condition to process 'negate' operator X-Mercurial-Node: 04d0742aa7ecb239a06ba46e9f8ebe0c52a86e9d X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 3 Message-Id: <04d0742aa7ecb239a06b.1472828291@mimosa> X-Mercurial-Series-Id: <5cb90003deb87ae58f62.1472828290@mimosa> In-Reply-To: <5cb90003deb87ae58f62.1472828290@mimosa> References: <5cb90003deb87ae58f62.1472828290@mimosa> User-Agent: Mercurial-patchbomb/3.9+198-f148bfa40489 Date: Fri, 02 Sep 2016 23:58:11 +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 - Sept. 2, 2016, 2:58 p.m.
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2371,7 +2371,7 @@ def _optimize(x, small): elif op == 'negate': s = getstring(x[1], _("can't negate that")) return _optimize(('string', '-' + s), small) - elif op in 'string symbol negate': + elif op in 'string symbol': return smallbonus, x # single revisions are small elif op == 'and': wa, ta = _optimize(x[1], True)