# HG changeset patch # User Benoit Boissinot # Date 1153060824 -7200 # Node ID a49534aac47db5acc64cdf7d7026dee3cb7b31bc # Parent 9999a796d3895b2489cb4d31ff14efb7a7f4af81 context.py: various fixes - use a normal changeset instead of a context - define _filenode instead of _node to match the else clause diff -r 9999a796d389 -r a49534aac47d 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)