Submitter | Yuya Nishihara |
---|---|
Date | Sept. 2, 2016, 2:58 p.m. |
Message ID | <5cb90003deb87ae58f62.1472828290@mimosa> |
Download | mbox | patch |
Permalink | /patch/16530/ |
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 A321C2C161; Fri, 2 Sep 2016 10:58:27 -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 LQkrGyli_Ol2; Fri, 2 Sep 2016 10:58:27 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 38EE82C173; Fri, 2 Sep 2016 10:58:27 -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 9DF9C2C173 for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:26 -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 IlQbNYqwhVg2 for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:26 -0400 (EDT) Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) by mercurial-scm.org (Postfix) with ESMTPS id 08BE92C161 for <mercurial-devel@mercurial-scm.org>; Fri, 2 Sep 2016 10:58:25 -0400 (EDT) Received: by mail-pf0-x242.google.com with SMTP id a143so2613985pfa.3 for <mercurial-devel@mercurial-scm.org>; Fri, 02 Sep 2016 07:58:25 -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 :user-agent:date:from:to; bh=IiBTOljlrX6/M2p61NwDdMt+vp62R/OVeCl4NWwJF1I=; b=eZLpz9cyZNbUfzDMPqZqBztXx+LOvSE+hfwJK3IkuHuUUHEnpff0pPzZD1w019m+iX QKE5i4sHxnm1EMPLhcG/TYEEj+1xt9CWwPVOyhho5aq8qeuqiTSphIyX2iZh6iG4BMuR AgJT30Ub+DDuqkZt5i6SYfRVhdLaUIecLwXdnExJbtbmMAT1J9C9AoSIi2QH6slCYmmR BFdMjaRp50Rx4Qj2hl0X+K8jvpeNhANSKvbDxA6IYhvG6nHoiHop9msQf31+CvXu3nqa HwwTjb9vU/ulZFrlfawweN6ociCMdP8cQWuLy/uZEz7WfZhUgwswj7h82jswVLo1af3u QmjQ== 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:user-agent:date:from:to; bh=IiBTOljlrX6/M2p61NwDdMt+vp62R/OVeCl4NWwJF1I=; b=hk9/cPFquXRZ3qkQzi7jDxsrQBB/KMiw7nmnRlUgRI7JQaW+uJRvhcoyK1emQ2QrIt cU9LgNkXlijXxDCueoPRAQmvG0ji0N+IVt02dDhDyGKkdv1w0227HGQwKh8XqipFcqCB JnuPfShJSr/SIzbytWOcD9GGkfA241/U98Fagy80gufAvusr/gXKWBw6hSxAZYJaW4eY +bDupqpeHCWuBC0+RenaETbBvqpR1tfiaRjiEJ7xsNY/bhHYzq8pzm6DNOnHKOLAjOvP eRrOx0k+9Pu3blimdXumLuXdbCZPa1SzqMAKZ8WTp5P983xkKEvMq8/0oOizGwRe9Ewn l1BQ== X-Gm-Message-State: AE9vXwPfYqKqnEHMwhWTh9Ef8HD7Z2PV1Lz917Ar/m+i10iBqUx1Qkb2aAcpKdFoRyftIg== X-Received: by 10.98.88.131 with SMTP id m125mr36813301pfb.63.1472828305224; Fri, 02 Sep 2016 07:58:25 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 07:58:24 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 3] revset: make optimize() reject unknown operators X-Mercurial-Node: 5cb90003deb87ae58f620657ec891df26e04c72a X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 3 Message-Id: <5cb90003deb87ae58f62.1472828290@mimosa> X-Mercurial-Series-Id: <5cb90003deb87ae58f62.1472828290@mimosa> User-Agent: Mercurial-patchbomb/3.9+198-f148bfa40489 Date: Fri, 02 Sep 2016 23:58:10 +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 @@ -2463,7 +2463,7 @@ def _optimize(x, small): else: w = 1 return w + wa, (op, x[1], ta) - return 1, x + raise ValueError('invalid operator %r' % op) def optimize(tree): _weight, newtree = _optimize(tree, small=True)