Patchwork D1178: show: move configitems to core

login
register
mail settings
Submitter phabricator
Date Oct. 18, 2017, 10:15 p.m.
Message ID <e79cb2cdbbb82303e6224e5941334ad6@localhost.localdomain>
Download mbox | patch
Permalink /patch/25217/
State Not Applicable
Headers show

Comments

phabricator - Oct. 18, 2017, 10:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2dd18a3fa69e: show: move configitems to core (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1178?vs=3003&id=3006

REVISION DETAIL
  https://phab.mercurial-scm.org/D1178

AFFECTED FILES
  hgext/show.py
  mercurial/configitems.py

CHANGE DETAILS




To: quark, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -181,6 +181,9 @@ 
 coreconfigitem('color', 'pagermode',
     default=dynamicdefault,
 )
+coreconfigitem('commands', 'show.aliasprefix',
+    default=list,
+)
 coreconfigitem('commands', 'status.relative',
     default=False,
 )
diff --git a/hgext/show.py b/hgext/show.py
--- a/hgext/show.py
+++ b/hgext/show.py
@@ -52,12 +52,6 @@ 
 cmdtable = {}
 command = registrar.command(cmdtable)
 
-configtable = {}
-configitem = registrar.configitem(configtable)
-configitem('commands', 'show.aliasprefix',
-    default=list,
-)
-
 revsetpredicate = registrar.revsetpredicate()
 
 class showcmdfunc(registrar._funcregistrarbase):