templatekw: rename termwidth() per convention
authorYuya Nishihara <yuya@tcha.org>
Wed, 16 Aug 2017 13:57:19 +0900
changeset 33850 84a3e04e35b5
parent 33849 3ae2eaecb49e
child 33851 7827fbbd0b06
templatekw: rename termwidth() per convention
mercurial/templatekw.py
--- a/mercurial/templatekw.py	Fri Aug 11 01:08:07 2017 -0700
+++ b/mercurial/templatekw.py	Wed Aug 16 13:57:19 2017 +0900
@@ -760,7 +760,7 @@
         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()