hgext3rd/evolve/utility.py
branchstable
changeset 4156 f996596d8ccc
parent 4056 235f15c40556
child 4159 328450f2de56
equal deleted inserted replaced
4125:865c33c16508 4156:f996596d8ccc
    47     configbool = repo.ui.configbool
    47     configbool = repo.ui.configbool
    48     config = repo.ui.config
    48     config = repo.ui.config
    49     desc = getattr(tr, 'desc', '')
    49     desc = getattr(tr, 'desc', '')
    50 
    50 
    51     autocase = False
    51     autocase = False
    52     if tr is None:
    52     if tr is None and not getattr(repo, '_destroying', False):
    53         autocase = True
    53         autocase = True
    54     elif desc.startswith('serve'):
    54     elif desc.startswith('serve'):
    55         autocase = True
    55         autocase = True
    56     elif desc.startswith('push') and not desc.startswith('push-response'):
    56     elif desc.startswith('push') and not desc.startswith('push-response'):
    57         autocase = True
    57         autocase = True
    61     if autocache:
    61     if autocache:
    62         warm = autocase
    62         warm = autocase
    63     else:
    63     else:
    64         # note: we should not get to the default case
    64         # note: we should not get to the default case
    65         warm = configbool('experimental', 'obshashrange.warm-cache', True)
    65         warm = configbool('experimental', 'obshashrange.warm-cache', True)
    66 
       
    67     if not configbool('experimental', 'obshashrange', True):
    66     if not configbool('experimental', 'obshashrange', True):
    68         return False
    67         return False
    69     if not warm:
    68     if not warm:
    70         return False
    69         return False
    71     maxrevs = repo.ui.configint('experimental', 'obshashrange.max-revs', None)
    70     maxrevs = repo.ui.configint('experimental', 'obshashrange.max-revs', None)