From patchwork Wed Oct 18 12:46:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D1158: test-show: make it compatible with chg From: phabricator X-Patchwork-Id: 25156 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Wed, 18 Oct 2017 12:46:48 +0000 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 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)]