##// END OF EJS Templates
subrepo: make subrepo.subrepo(<not a subrepo path>) fail...
Dov Feldstern -
r16756:2e3513e7 default
parent child Browse files
Show More
@@ -268,7 +268,7 b' def subrepo(ctx, path):'
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])
General Comments 0
You need to be logged in to leave comments. Login now