Submitter | Yuya Nishihara |
---|---|
Date | March 21, 2018, 1:51 p.m. |
Message ID | <a348ff11094fab5fb2ca.1521640313@mimosa> |
Download | mbox | patch |
Permalink | /patch/29691/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -36,6 +36,10 @@ compatlist = templateutil.compatlist _showcompatlist = templateutil._showcompatlist def _showlist(name, values, templ, mapping, plural=None, separator=' '): + ui = mapping.get('ui') + if ui: + ui.deprecwarn("templatekw._showlist() is deprecated, use " + "templateutil._showcompatlist()", '4.6') context = templ # this is actually a template context, not a templater return _showcompatlist(context, mapping, name, values, plural, separator)