mercurial/subrepo.py
changeset 14220 21b8ce4d3331
parent 14076 924c82157d46
child 14221 680c3c6fcb48
equal deleted inserted replaced
14219:c33427080671 14220:21b8ce4d3331
   233     # scripts that don't use our demand-loading
   233     # scripts that don't use our demand-loading
   234     global hg
   234     global hg
   235     import hg as h
   235     import hg as h
   236     hg = h
   236     hg = h
   237 
   237 
   238     scmutil.path_auditor(ctx._repo.root)(path)
   238     scmutil.pathauditor(ctx._repo.root)(path)
   239     state = ctx.substate.get(path, nullstate)
   239     state = ctx.substate.get(path, nullstate)
   240     if state[2] not in types:
   240     if state[2] not in types:
   241         raise util.Abort(_('unknown subrepo type %s') % state[2])
   241         raise util.Abort(_('unknown subrepo type %s') % state[2])
   242     return types[state[2]](ctx, path, state[:2])
   242     return types[state[2]](ctx, path, state[:2])
   243 
   243