Patchwork D1158: test-show: make it compatible with chg

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

Comments

phabricator - Oct. 18, 2017, 12:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG110040e715c9: test-show: make it compatible with chg (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1158?vs=2933&id=2968

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

AFFECTED FILES
  mercurial/chgserver.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -73,6 +73,10 @@ 
     'extensions',
 ]
 
+_configsectionitems = [
+    ('commands', 'show.aliasprefix'), # show.py reads it in extsetup
+]
+
 # sensitive environment variables affecting confighash
 _envre = re.compile(r'''\A(?:
                     CHGHG
@@ -101,6 +105,8 @@ 
     sectionitems = []
     for section in _configsections:
         sectionitems.append(ui.configitems(section))
+    for section, item in _configsectionitems:
+        sectionitems.append(ui.config(section, item))
     sectionhash = _hashlist(sectionitems)
     envitems = [(k, v) for k, v in encoding.environ.iteritems()
                 if _envre.match(k)]