equal
deleted
inserted
replaced
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: |