changeset 2627:b779319a532b

context.py: self.repo is not defined, change to self._repo
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 16 Jul 2006 16:39:02 +0200
parents f84e166eb0de
children 9999a796d389
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Jul 16 11:32:37 2006 +0200
+++ b/mercurial/context.py	Sun Jul 16 16:39:02 2006 +0200
@@ -39,12 +39,12 @@
 
     def parents(self):
         """return contexts for each parent changeset"""
-        p = self.repo.changelog.parents(self._node)
+        p = self._repo.changelog.parents(self._node)
         return [ changectx(self._repo, x) for x in p ]
 
     def children(self):
         """return contexts for each child changeset"""
-        c = self.repo.changelog.children(self._node)
+        c = self._repo.changelog.children(self._node)
         return [ changectx(self._repo, x) for x in c ]
 
     def filenode(self, path):
@@ -77,10 +77,10 @@
 
         if self._id:
             # if given a changeset id, go ahead and look up the file
-            self._changeset = changectx(repo, self._id)
+            self._changeset = changectx(self._repo, self._id)
             node, flag = self._repo.manifest.find(self._changeset[0], path)
             self._node = node
-            self._filelog = self.repo.file(self._path)
+            self._filelog = self._repo.file(self._path)
         elif self._fileid:
             # else be lazy
             self._filelog = self._repo.file(self._path)