diff -r f84358f75978 -r f7c9c5d8c7f4 mercurial/extensions.py --- a/mercurial/extensions.py Fri Jun 30 03:45:56 2017 +0200 +++ b/mercurial/extensions.py Tue Sep 05 00:31:59 2017 +0200 @@ -288,7 +288,9 @@ ('templatefunc', templater, 'loadfunction'), ('templatekeyword', templatekw, 'loadkeyword'), ] + _loadextra(ui, newindex, extraloaders) +def _loadextra(ui, newindex, extraloaders): for name in _order[newindex:]: module = _extensions[name] if not module: