equal
deleted
inserted
replaced
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: |