D1178: show: move configitems to core

quark (Jun Wu) phabricator at mercurial-scm.org
Wed Oct 18 18:15:26 EDT 2017


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

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):



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


More information about the Mercurial-devel mailing list