# HG changeset patch # User Yuya Nishihara # Date 1502859439 -32400 # Node ID 84a3e04e35b55e653076ec6616b7089c0f66c978 # Parent 3ae2eaecb49e278c289e519f7a4e22b048a4e14c templatekw: rename termwidth() per convention diff -r 3ae2eaecb49e -r 84a3e04e35b5 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()