hgext3rd/evolve/stablerange.py
changeset 2506 747dc7067751
parent 2505 7fd55c5efffb
child 2529 537058b433ef
equal deleted inserted replaced
2505:7fd55c5efffb 2506:747dc7067751
   933 
   933 
   934         def transaction(self, *args, **kwargs):
   934         def transaction(self, *args, **kwargs):
   935             tr = super(stablerangerepo, self).transaction(*args, **kwargs)
   935             tr = super(stablerangerepo, self).transaction(*args, **kwargs)
   936             if not repo.ui.configbool('experimental', 'obshashrange', False):
   936             if not repo.ui.configbool('experimental', 'obshashrange', False):
   937                 return tr
   937                 return tr
       
   938             if not repo.ui.configbool('experimental', 'obshashrange.warm-cache',
       
   939                                       True):
       
   940                 return tr
   938             reporef = weakref.ref(self)
   941             reporef = weakref.ref(self)
   939 
   942 
   940             def _warmcache(tr):
   943             def _warmcache(tr):
   941                 repo = reporef()
   944                 repo = reporef()
   942                 if repo is None:
   945                 if repo is None: