mercurial/subrepo.py
changeset 33499 0407a51b9d8c
parent 33365 6d88468d435b
child 33657 60ee7af2a2ba
equal deleted inserted replaced
33498:b7a75b9a3386 33499:0407a51b9d8c
   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