# HG changeset patch # User Pierre-Yves David # Date 1496138158 -7200 # Node ID 747dc70677511e23a0587e7a63fac129b07dd2ed # Parent 7fd55c5efffb8728d29a0a2f94a69ece7c6df098 stablerange: also respect the 'warm-cache' config This will help large install to enable obshashrange as "opt-in" without impacting other repositories. diff -r 7fd55c5efffb -r 747dc7067751 hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Tue May 30 11:49:00 2017 +0200 +++ b/hgext3rd/evolve/stablerange.py Tue May 30 11:55:58 2017 +0200 @@ -935,6 +935,9 @@ tr = super(stablerangerepo, self).transaction(*args, **kwargs) if not repo.ui.configbool('experimental', 'obshashrange', False): return tr + if not repo.ui.configbool('experimental', 'obshashrange.warm-cache', + True): + return tr reporef = weakref.ref(self) def _warmcache(tr):