equal
deleted
inserted
replaced
40 def shouldwarmcache(repo, tr): |
40 def shouldwarmcache(repo, tr): |
41 configbool = repo.ui.configbool |
41 configbool = repo.ui.configbool |
42 config = repo.ui.config |
42 config = repo.ui.config |
43 desc = getattr(tr, 'desc', '') |
43 desc = getattr(tr, 'desc', '') |
44 |
44 |
45 autocase = tr is None or desc.startswith('push') or desc.startswith('serve') |
45 autocase = False |
|
46 if tr is None: |
|
47 autocase = True |
|
48 elif desc.startswith('serve'): |
|
49 autocase = True |
|
50 elif desc.startswith('push') and not desc.startswith('push-response'): |
|
51 autocase = True |
|
52 |
46 autocache = config('experimental', 'obshashrange.warm-cache', |
53 autocache = config('experimental', 'obshashrange.warm-cache', |
47 'auto') == 'auto' |
54 'auto') == 'auto' |
48 if autocache: |
55 if autocache: |
49 warm = autocase |
56 warm = autocase |
50 else: |
57 else: |