Submitter | Gregory Szorc |
---|---|
Date | July 4, 2017, 4:32 a.m. |
Message ID | <f2c118798d8bd214679f.1499142758@ubuntu-vm-main> |
Download | mbox | patch |
Permalink | /patch/21962/ |
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 9E5952C20F; Tue, 4 Jul 2017 00:32:45 -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 5tuY2PdC5G_j; Tue, 4 Jul 2017 00:32:45 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 2E0702C210; Tue, 4 Jul 2017 00:32:44 -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 18CAE2C1CA for <mercurial-devel@mercurial-scm.org>; Tue, 4 Jul 2017 00:32:42 -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 8WuG2eNbXVL4 for <mercurial-devel@mercurial-scm.org>; Tue, 4 Jul 2017 00:32:41 -0400 (EDT) Received: from mail-pg0-x22d.google.com (mail-pg0-x22d.google.com [IPv6:2607:f8b0:400e:c05::22d]) by mercurial-scm.org (Postfix) with ESMTPS id B95D72C1B8 for <mercurial-devel@mercurial-scm.org>; Tue, 4 Jul 2017 00:32:41 -0400 (EDT) Received: by mail-pg0-x22d.google.com with SMTP id k14so28285734pgr.0 for <mercurial-devel@mercurial-scm.org>; Mon, 03 Jul 2017 21:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:subject:message-id :in-reply-to:references:user-agent:date:from:to; bh=36oXokgw7m/ieBgqTnEpmLnO90S4BDXegB+brYnG/GI=; b=mjj99I46UDz3uXU7q2BROPqrmBcJzF5xOxakn5EmHDiudDXJwEEz3mkBQ2aDdkriLw 4rcCxprGiuQjDnTNuBnGCdzb2463PFjCvaF3MeC0XiZPHOc3Pll+AJ23GBGLoqarfVCv gTdSiGcMmd6q6j2kgOfK4FXH0wXnCETprAIax5CNTg/yV+mD/VHiUq1YmHXFa9D/KzMB dhc6yg5BMOdCsVinev2l7d1nMs1XjLKZsawRk7MVFrg5ccRThwkK4PWBTmyCgukZzNSd m/F9j1uWnUc8lrUOumo+vwVzIspiu8jl5ly2ruRxFyXQWFgrh3nVO2bn7LvRijjTjHcb c5TA== 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=36oXokgw7m/ieBgqTnEpmLnO90S4BDXegB+brYnG/GI=; b=Mr5LeZm//ulr6hKCqbeT7UyJd5Qjaafl9oc6ioX1y3DJZsFc65jzU2eOOfYAzg6dzo U7aLSl54AiUp1wuMt/VVGHmRh4MyhbKZPei2BlCUut0tkklTrvwlQ7JpQ2z3gtLBiQP6 JH5e6sXOG+ICOD2oDtvIvMb4euqck3LqAs9hXlFwfX5PGS2uqMQmpBHVC4autBcQ+k6z kdj2pmJ1Oq++ldF0py2TICp5jAddacv+FbM1OkPpGa7e/ICc5+SalX7pYFSR1aTGuvRR Tf3O9fzRHsSLBEBFa5rNH1U1J24klTkqEi5ErEp77rkBxOZNA3/rNgYqw+ojmqzSuUmz GPRA== X-Gm-Message-State: AIVw112F+vDSK9eNi4OlkBbzGc8ig6JsEanmJstiIgCLCMUesJNAD3pr 8eQSModvVe6I5ObdDb0= X-Received: by 10.84.208.236 with SMTP id c41mr13812869plj.95.1499142760879; Mon, 03 Jul 2017 21:32:40 -0700 (PDT) Received: from [127.0.1.1] (c-76-102-241-255.hsd1.ca.comcast.net. [76.102.241.255]) by smtp.gmail.com with ESMTPSA id y205sm5922692pfb.124.2017.07.03.21.32.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jul 2017 21:32:40 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 2 of 5] show: avoid extra list operations X-Mercurial-Node: f2c118798d8bd214679f9a6ad3f8f4f87882d9d3 X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 5 Message-Id: <f2c118798d8bd214679f.1499142758@ubuntu-vm-main> X-Mercurial-Series-Id: <0cacc533e884965d93b4.1499142757@ubuntu-vm-main> In-Reply-To: <0cacc533e884965d93b4.1499142757@ubuntu-vm-main> References: <0cacc533e884965d93b4.1499142757@ubuntu-vm-main> User-Agent: Mercurial-patchbomb/4.2.1+1026-eaf601d0ea04 Date: Mon, 03 Jul 2017 21:32:38 -0700 From: Gregory Szorc <gregory.szorc@gmail.com> 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
Gregory Szorc - July 4, 2017, 4:32 a.m.
Patch
diff --git a/hgext/show.py b/hgext/show.py --- a/hgext/show.py +++ b/hgext/show.py @@ -219,7 +219,7 @@ def showstack(ui, repo, displayer): branchpointattip = True break - stackrevs = list(reversed(sorted(stackrevs))) + stackrevs = list(sorted(stackrevs, reverse=True)) # Find likely target heads for the current stack. These are likely # merge or rebase targets.