Mercurial > hgsubversion
changeset 1540:c0fc42713ecb
config: don't use the config registrar on hg that lacks dynamicdefault
Some versions of hg have bits of the config registrar code, but lack
dynamicdefault. Despite that, if they see reigstered config knobs,
they'll set off devel-warn nonsense about how you're holding the
config system wrong.
Ugh.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 29 Oct 2017 09:06:57 -0400 |
parents | 0ebcc5bbf692 |
children | adba152a5177 |
files | hgsubversion/__init__.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/__init__.py +++ b/hgsubversion/__init__.py @@ -256,6 +256,10 @@ except (ImportError, AttributeError): pass if not hgutil.safehasattr(configitem, 'dynamicdefault'): + # hg 4.3 lacks support for dynamicdefault in a way that means we + # have to not use the config registrar at all. + def configitem(*args, **kwargs): + pass configitem.dynamicdefault = None # real default is 'svnexternals'. Can also be 'subrepos' or