##// END OF EJS Templates
context.py: self.repo is not defined, change to self._repo
Benoit Boissinot -
r2627:b779319a default
parent child Browse files
Show More
@@ -39,12 +39,12 b' class changectx(object):'
39
39
40 def parents(self):
40 def parents(self):
41 """return contexts for each parent changeset"""
41 """return contexts for each parent changeset"""
42 p = self.repo.changelog.parents(self._node)
42 p = self._repo.changelog.parents(self._node)
43 return [ changectx(self._repo, x) for x in p ]
43 return [ changectx(self._repo, x) for x in p ]
44
44
45 def children(self):
45 def children(self):
46 """return contexts for each child changeset"""
46 """return contexts for each child changeset"""
47 c = self.repo.changelog.children(self._node)
47 c = self._repo.changelog.children(self._node)
48 return [ changectx(self._repo, x) for x in c ]
48 return [ changectx(self._repo, x) for x in c ]
49
49
50 def filenode(self, path):
50 def filenode(self, path):
@@ -77,10 +77,10 b' class filectx(object):'
77
77
78 if self._id:
78 if self._id:
79 # if given a changeset id, go ahead and look up the file
79 # if given a changeset id, go ahead and look up the file
80 self._changeset = changectx(repo, self._id)
80 self._changeset = changectx(self._repo, self._id)
81 node, flag = self._repo.manifest.find(self._changeset[0], path)
81 node, flag = self._repo.manifest.find(self._changeset[0], path)
82 self._node = node
82 self._node = node
83 self._filelog = self.repo.file(self._path)
83 self._filelog = self._repo.file(self._path)
84 elif self._fileid:
84 elif self._fileid:
85 # else be lazy
85 # else be lazy
86 self._filelog = self._repo.file(self._path)
86 self._filelog = self._repo.file(self._path)
General Comments 0
You need to be logged in to leave comments. Login now