mercurial/context.py
changeset 4417 0912d8df5e19
parent 4209 dbc3846c09a1
parent 4414 b6146466b92a
child 4635 63b9d2deed48
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -448,7 +448,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)