mercurial/context.py
changeset 4414 b6146466b92a
parent 4207 7e1c8a565a4f
child 4417 0912d8df5e19
child 4638 3c7fc13c4bfa
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -446,7 +446,7 @@ class workingfilectx(filectx):
 
     def __getattr__(self, name):
         if name == '_changectx':
-            self._changectx = workingctx(repo)
+            self._changectx = workingctx(self._repo)
             return self._changectx
         elif name == '_repopath':
             self._repopath = (self._repo.dirstate.copied(self._path)