stablerange: also respect the 'warm-cache' config
This will help large install to enable obshashrange as "opt-in" without
impacting other repositories.
--- 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):