# HG changeset patch # User Pierre-Yves David # Date 1508518575 -7200 # Node ID 9c04bd9280560ac06e43b4033dc849e6fdae9ad4 # Parent ef38b44c08cfde54d7fdac9dedf61704dade2087 compat: conditionally access config item Version 4.2 and below do not have config items support. So the extensions helper do not register anything. diff -r ef38b44c08cf -r 9c04bd928056 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Fri Oct 20 18:50:26 2017 +0200 +++ b/hgext3rd/evolve/__init__.py Fri Oct 20 18:56:15 2017 +0200 @@ -382,7 +382,8 @@ eh.configitem('experimental', 'prunestrip') # hack around because we need an actual default there -configtable['experimental']['evolution.allnewcommands'].default = None +if configtable: + configtable['experimental']['evolution.allnewcommands'].default = None # pre hg 4.0 compat