equal
deleted
inserted
replaced
399 def newcommitphase(ui, ctx): |
399 def newcommitphase(ui, ctx): |
400 commitphase = phases.newcommitphase(ui) |
400 commitphase = phases.newcommitphase(ui) |
401 substate = getattr(ctx, "substate", None) |
401 substate = getattr(ctx, "substate", None) |
402 if not substate: |
402 if not substate: |
403 return commitphase |
403 return commitphase |
404 check = ui.config('phases', 'checksubrepos', 'follow') |
404 check = ui.config('phases', 'checksubrepos') |
405 if check not in ('ignore', 'follow', 'abort'): |
405 if check not in ('ignore', 'follow', 'abort'): |
406 raise error.Abort(_('invalid phases.checksubrepos configuration: %s') |
406 raise error.Abort(_('invalid phases.checksubrepos configuration: %s') |
407 % (check)) |
407 % (check)) |
408 if check == 'ignore': |
408 if check == 'ignore': |
409 return commitphase |
409 return commitphase |