context: fix workingfilectx._changectx
authorMatt Mackall <mpm@selenic.com>
Mon, 07 May 2007 22:30:36 -0500
changeset 4414 b6146466b92a
parent 4406 f700ea2b0689
child 4415 1a63b44f90c9
context: fix workingfilectx._changectx
mercurial/context.py
--- a/mercurial/context.py	Sun May 06 23:44:18 2007 +0200
+++ b/mercurial/context.py	Mon May 07 22:30:36 2007 -0500
@@ -446,7 +446,7 @@
 
     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)