Mercurial > hg-stable
diff mercurial/dispatch.py @ 30657:b2be4ccaff1d
color: load 'colortable' from extension using an 'extraloader'
Now that we have the '_style' dictionary in core, we can use the clean and
standard 'extraloader' mechanism to load extension's 'colortable'.
color.loadcolortable
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 18 Nov 2016 18:18:15 +0100 |
parents | 2d555d753f0e |
children | caf7e1c5efe4 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Fri Nov 18 18:09:36 2016 +0100 +++ b/mercurial/dispatch.py Fri Nov 18 18:18:15 2016 +0100 @@ -25,6 +25,7 @@ from . import ( cmdutil, + color, commands, debugcommands, demandimport, @@ -635,6 +636,7 @@ # extraobj) arguments extraloaders = [ ('cmdtable', commands, 'loadcmdtable'), + ('colortable', color, 'loadcolortable'), ('filesetpredicate', fileset, 'loadpredicate'), ('revsetpredicate', revset, 'loadpredicate'), ('templatefilter', templatefilters, 'loadfilter'),