# HG changeset patch # User Augie Fackler # Date 1509282417 14400 # Node ID c0fc42713ecbe1ff1b144582ada5d3830366d153 # Parent 0ebcc5bbf692c8c11e84add686d9c47d03662696 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. diff --git a/hgsubversion/__init__.py b/hgsubversion/__init__.py --- 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