# HG changeset patch # User Jun Wu # Date 2017-10-18 22:05:03 # Node ID 317566f0c2e6ea5597c6c199a419ff5a6666e060 # Parent 7bf7544fd6ccfa59c709dfc5b20d0f68e7bb59e0 show: move configitems to core chgserver.py is also checking the config and will get: devel-warn: accessing unregistered config item: 'commands.show.aliasprefix' at: mercurial/chgserver.py:109 if the config is not registered. Differential Revision: https://phab.mercurial-scm.org/D1178 diff --git a/hgext/show.py b/hgext/show.py --- a/hgext/show.py +++ b/hgext/show.py @@ -52,12 +52,6 @@ testedwith = 'ships-with-hg-core' cmdtable = {} command = registrar.command(cmdtable) -configtable = {} -configitem = registrar.configitem(configtable) -configitem('commands', 'show.aliasprefix', - default=list, -) - revsetpredicate = registrar.revsetpredicate() class showcmdfunc(registrar._funcregistrarbase): diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -181,6 +181,9 @@ coreconfigitem('color', 'mode', coreconfigitem('color', 'pagermode', default=dynamicdefault, ) +coreconfigitem('commands', 'show.aliasprefix', + default=list, +) coreconfigitem('commands', 'status.relative', default=False, )