Submitter | Yuya Nishihara |
---|---|
Date | Oct. 5, 2018, 1:29 p.m. |
Message ID | <5b90cef0b86041b89572.1538746199@mimosa> |
Download | mbox | patch |
Permalink | /patch/35487/ |
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 1B7A32C3C5; Fri, 5 Oct 2018 09:36:08 -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 S_hNkSe4qK_S; Fri, 5 Oct 2018 09:35:44 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id D4A1E2C3CA; Fri, 5 Oct 2018 09:31:02 -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 BC49C2C210 for <mercurial-devel@mercurial-scm.org>; Fri, 5 Oct 2018 09:31:01 -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 rxIALJtvAgcW for <mercurial-devel@mercurial-scm.org>; Fri, 5 Oct 2018 09:30:38 -0400 (EDT) Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by mercurial-scm.org (Postfix) with ESMTPS id BA3CE2C335 for <mercurial-devel@mercurial-scm.org>; Fri, 5 Oct 2018 09:30:17 -0400 (EDT) Received: by mail-pl1-x631.google.com with SMTP id y15-v6so6857997plr.12 for <mercurial-devel@mercurial-scm.org>; Fri, 05 Oct 2018 06:30:17 -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 :in-reply-to:references:user-agent:date:from:to; bh=gl+9rvJcHlh23Ho9Ir1qaPVacAh9SbblJMKQn/DFkUk=; b=NAiOM5nHxUCJm2BG8bILbaQ/p+YRBwLcqJHei0hhiF5uVNTN3YkjATPC26OmE1sg8s 6oMGofGPKXEt8KfeNwmTSUnctm1F6HGDFlWxlShfL8JaYqYUsZZhrJGHTADLl6M1T3S9 7crNvL5hiY+Gi66OECt8ILT9HPuszAkUxFr6V3EkZy07KwIXOQ0ht7AO2DZRggmgxk/o r8plfsvc/rqF5VZumzP5FOve2AMSwpNd++IeAbJHRJg1+OxNPNCSlUqgA/tv3ky6KBKl ef2Iz9ISCCV6IdYNCttuOvQrF6EKe+hJOAX4yaMPz9ekAb697smugT50+nhiHoExr3FS yq1Q== 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=gl+9rvJcHlh23Ho9Ir1qaPVacAh9SbblJMKQn/DFkUk=; b=SiGs/oi4VupiYH33GkucSdTLg1/mc+fiMLE9fLdxPhSY1SJ1ErUVaviC0ro2x5Cps+ whOGvbQiIMLGO7ZaicqVLHtc7c0SabjSvA+CqvYH/DEbrc2KUNw7itMx6wpLlKbCrmha Y/DcH0h8VRWboNiE16KuiU4Kq6Q3fxRANb83mw6MSCNCI7QHmS0k+gtdveiNjh3oLacQ xIPDMa0K8a7yJ9EIHnQshSGpg7vPCEHAZ+8VaL8mxvqbMa8K/f1QUpzhvVByRjGQlHaR MMKWAnO9uqSQsGZlZR3+eez3aAiRJXdd2k+9DpUe5Eui0JSQ0CoWKfqZYOt3YpJDQpYz r9HQ== X-Gm-Message-State: ABuFfojxKQZ8HEIyWmY+WXBma7N5gkhJG8HDa0azqo8aiIoxIUbDkjaL 4arEpFvsZ6HDkPlStOd35FZ2wBGz X-Google-Smtp-Source: ACcGV61oDoutzxnzotFtzusTEFaEFiw6knMW8fpMlV0+UOLilkyrMgUcfh0NpmGEzeivKFOLx1orxw== X-Received: by 2002:a17:902:f096:: with SMTP id go22mr11815550plb.235.1538746216400; Fri, 05 Oct 2018 06:30:16 -0700 (PDT) Received: from [127.0.1.1] (pdb6fbe44.tkyea126.ap.so-net.ne.jp. [219.111.190.68]) by smtp.gmail.com with ESMTPSA id x17-v6sm10833537pfn.59.2018.10.05.06.30.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 06:30:15 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 4 of 5] remotenames: remove unneeded sorted() from revset implementation X-Mercurial-Node: 5b90cef0b86041b89572d4655e4507a9641c3be4 X-Mercurial-Series-Index: 4 X-Mercurial-Series-Total: 5 Message-Id: <5b90cef0b86041b89572.1538746199@mimosa> X-Mercurial-Series-Id: <25533575d04ebad69036.1538746196@mimosa> In-Reply-To: <25533575d04ebad69036.1538746196@mimosa> References: <25533575d04ebad69036.1538746196@mimosa> User-Agent: Mercurial-patchbomb/4.7.2+1200-ad8389ecd3f5 Date: Fri, 05 Oct 2018 22:29:59 +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 - Oct. 5, 2018, 1:29 p.m.
Patch
diff --git a/hgext/remotenames.py b/hgext/remotenames.py --- a/hgext/remotenames.py +++ b/hgext/remotenames.py @@ -368,7 +368,7 @@ def _revsetutil(repo, subset, x, rtypes) nodes.update(ns.nodes(repo, name)) revs = (cl.rev(n) for n in nodes if cl.hasnode(n)) - return subset & smartset.baseset(sorted(revs)) + return subset & smartset.baseset(revs) @revsetpredicate('remotenames([name])') def remotenamesrevset(repo, subset, x):