context.py: various fixes
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 16 Jul 2006 16:40:24 +0200
changeset 2629 a49534aac47d
parent 2628 9999a796d389
child 2630 837119f1bf4d
child 2641 156fb1feab62
context.py: various fixes - use a normal changeset instead of a context - define _filenode instead of _node to match the else clause
mercurial/context.py
--- a/mercurial/context.py	Sun Jul 16 16:39:03 2006 +0200
+++ b/mercurial/context.py	Sun Jul 16 16:40:24 2006 +0200
@@ -79,10 +79,10 @@
 
         if self._id:
             # if given a changeset id, go ahead and look up the file
-            self._changeset = changectx(self._repo, self._id)
+            self._changeset = self._repo.changelog.read(self._id)
             node, flag = self._repo.manifest.find(self._changeset[0], path)
-            self._node = node
             self._filelog = self._repo.file(self._path)
+            self._filenode = node
         elif self._fileid:
             # else be lazy
             self._filelog = self._repo.file(self._path)