Submitter | Yuya Nishihara |
---|---|
Date | Aug. 16, 2017, 5:22 a.m. |
Message ID | <6cd0eafbd52b4e0efcad.1502860930@mimosa> |
Download | mbox | patch |
Permalink | /patch/23067/ |
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 A8CEE2C2A1; Wed, 16 Aug 2017 01:22: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 Hel1bCIVIvoX; Wed, 16 Aug 2017 01:22:26 -0400 (EDT) Received: from mercurial-scm.org (localhost [IPv6:::1]) by mercurial-scm.org (Postfix) with ESMTP id 24F2C2C215; Wed, 16 Aug 2017 01:22:26 -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 CC8CE2C215 for <mercurial-devel@mercurial-scm.org>; Wed, 16 Aug 2017 01:22:23 -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 oFDqoQBo9tZp for <mercurial-devel@mercurial-scm.org>; Wed, 16 Aug 2017 01:22:23 -0400 (EDT) Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) by mercurial-scm.org (Postfix) with ESMTPS id E76F42C1CB for <mercurial-devel@mercurial-scm.org>; Wed, 16 Aug 2017 01:22:22 -0400 (EDT) Received: by mail-pg0-x244.google.com with SMTP id l64so4366127pge.2 for <mercurial-devel@mercurial-scm.org>; Tue, 15 Aug 2017 22:22:22 -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=0iWpYEX4EJMZm3XHRi16IHfm6/G2eKGioBSVNU3Ek1Y=; b=s4yi0J6RKIOKfPNR3TTIbg1HsP9rphxiU6tA7aPEH1CxI74Qlf6ZJtzabPafrf9X6g 1RnFQ3yRL2cPV4KzbDWjvsNUgpugRaosW2vaQMjchibGVaJCbQvkgPyzCGLvkwM3+r6C uwfNFsuPSvwZJwyW7OOU0Ygb9FoWHskCH0sRCDqDvdT035PfG24CPowKP8Pdyxfsaq3f a3qn/ScND31NWy2ruwqtiDTok00/UfzKGuizLD/Kynf488dg3VH8vDqyoSuzUeCcMqkw 0xfLNoZTvaGxzJUVxUoY1rbaFIWCYuLp6/99JIRHgKMuLC1GDbrZ6GhBL/r8WdpTjUAA q6MA== 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=0iWpYEX4EJMZm3XHRi16IHfm6/G2eKGioBSVNU3Ek1Y=; b=InXWUNhIzZUKkG18Om2H002NHGYI1co91SyjZS3uzc1uNp4T9nLbw1C6o7etGvI0f/ rz1+Tgzn5WOJ0S65yugm14GHR0FeRWrR7Z/Z08Im17xzPcH8AB8b9kqZogf0ef+668Mu Yxp9IkL599ofGwbPJZnj5Dxf6qop4X1Cr94MzwcZAg85lviWE09i8FO7WB/RPuxSpam5 dF5mmEbb/S9a+V13NRFSqqcki/cOm9I8kEeMsk7T6wsHJWOoZera/qycJSUKoKjp5gh/ y+n+Uc50f8c8wsnLp4AOiT0iIbxLP7IxaH2Po+OTAI/zPFAxbfzT2VrUxbk2gBf58BUO 4FvA== X-Gm-Message-State: AHYfb5hioyxc9p1WBBpM2POs3r+kQUckC6lgz9dM2DmE6sKVwPcJu7ID ZTk+qZ3hbQYg0+TWXBM= X-Received: by 10.98.93.87 with SMTP id r84mr513254pfb.292.1502860941290; Tue, 15 Aug 2017 22:22:21 -0700 (PDT) Received: from [127.0.1.1] (flets-202-70-212-196.client.pikara.ne.jp. [202.70.212.196]) by smtp.gmail.com with ESMTPSA id w82sm132185pfa.39.2017.08.15.22.22.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Aug 2017 22:22:20 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 2] templatekw: rename termwidth() per convention X-Mercurial-Node: 6cd0eafbd52b4e0efcad037876dc9bdf6c9bbfbb X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 2 Message-Id: <6cd0eafbd52b4e0efcad.1502860930@mimosa> X-Mercurial-Series-Id: <6cd0eafbd52b4e0efcad.1502860930@mimosa> User-Agent: Mercurial-patchbomb/4.2.3+1573-a0e28577f7d4 Date: Wed, 16 Aug 2017 14:22: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 - Aug. 16, 2017, 5:22 a.m.
Patch
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -760,7 +760,7 @@ def loadkeyword(ui, extname, registrarob keywords[name] = func @templatekeyword('termwidth') -def termwidth(repo, ctx, templ, **args): +def showtermwidth(repo, ctx, templ, **args): """Integer. The width of the current terminal.""" return repo.ui.termwidth()