mercurial/subrepo.py
changeset 16756 2e3513e7348a
parent 16683 525fdb738975
child 17027 6c05eebd9fab
equal deleted inserted replaced
16755:d0b9ebba41e9 16756:2e3513e7348a
   266     global hg
   266     global hg
   267     import hg as h
   267     import hg as h
   268     hg = h
   268     hg = h
   269 
   269 
   270     scmutil.pathauditor(ctx._repo.root)(path)
   270     scmutil.pathauditor(ctx._repo.root)(path)
   271     state = ctx.substate.get(path, nullstate)
   271     state = ctx.substate[path]
   272     if state[2] not in types:
   272     if state[2] not in types:
   273         raise util.Abort(_('unknown subrepo type %s') % state[2])
   273         raise util.Abort(_('unknown subrepo type %s') % state[2])
   274     return types[state[2]](ctx, path, state[:2])
   274     return types[state[2]](ctx, path, state[:2])
   275 
   275 
   276 # subrepo classes need to implement the following abstract class:
   276 # subrepo classes need to implement the following abstract class: