Patchwork [1,of,2] templatekw: rename termwidth() per convention

login
register
mail settings
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

Comments

Yuya Nishihara - Aug. 16, 2017, 5:22 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1502859439 -32400
#      Wed Aug 16 13:57:19 2017 +0900
# Node ID 6cd0eafbd52b4e0efcad037876dc9bdf6c9bbfbb
# Parent  2c44ad89954bf0a04392775e7444f1ba2fc0b2e9
templatekw: rename termwidth() per convention

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()