mercurial/subrepo.py
changeset 16756 2e3513e7348a
parent 16683 525fdb738975
child 17027 6c05eebd9fab
--- a/mercurial/subrepo.py	Sun May 20 14:40:36 2012 -0500
+++ b/mercurial/subrepo.py	Sun May 20 21:11:34 2012 +0300
@@ -268,7 +268,7 @@
     hg = h
 
     scmutil.pathauditor(ctx._repo.root)(path)
-    state = ctx.substate.get(path, nullstate)
+    state = ctx.substate[path]
     if state[2] not in types:
         raise util.Abort(_('unknown subrepo type %s') % state[2])
     return types[state[2]](ctx, path, state[:2])