changeset 2629:a49534aac47d

context.py: various fixes - use a normal changeset instead of a context - define _filenode instead of _node to match the else clause
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 16 Jul 2006 16:40:24 +0200
parents 9999a796d389
children 837119f1bf4d 156fb1feab62
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)