Mercurial > evolve
changeset 5534:1ee535d769db stable
config: specify the extension when forcing a config option
I noticed that `hg config server --debug` said 'none: server.bundle1=False'.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 05 Sep 2020 14:46:36 -0400 |
parents | 044ce00dfa88 |
children | 21a8f69e8fa6 |
files | hgext3rd/evolve/__init__.py hgext3rd/evolve/serveronly.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Sat Sep 05 00:07:01 2020 -0400 +++ b/hgext3rd/evolve/__init__.py Sat Sep 05 14:46:36 2020 -0400 @@ -367,7 +367,7 @@ if obsolete.isenabled(repo, b'exchange'): # if no config explicitly set, disable bundle1 if not isinstance(repo.ui.config(b'server', b'bundle1'), bytes): - repo.ui.setconfig(b'server', b'bundle1', False) + repo.ui.setconfig(b'server', b'bundle1', False, b'evolve') class trdescrepo(repo.__class__):
--- a/hgext3rd/evolve/serveronly.py Sat Sep 05 00:07:01 2020 -0400 +++ b/hgext3rd/evolve/serveronly.py Sat Sep 05 14:46:36 2020 -0400 @@ -57,8 +57,8 @@ evolveopts = repo.ui.configlist(b'experimental', b'evolution') if not evolveopts: evolveopts = b'all' - repo.ui.setconfig(b'experimental', b'evolution', evolveopts) + repo.ui.setconfig(b'experimental', b'evolution', evolveopts, b'evolve') if obsolete.isenabled(repo, b'exchange'): # if no config explicitly set, disable bundle1 if not isinstance(repo.ui.config(b'server', b'bundle1'), bytes): - repo.ui.setconfig(b'server', b'bundle1', False) + repo.ui.setconfig(b'server', b'bundle1', False, b'evolve')