##// END OF EJS Templates
filectx: fix annotate to not directly instantiate filectx...
Durham Goode -
r23770:50f0096a default
parent child Browse files
Show More
@@ -893,8 +893,7 b' class basefilectx(object):'
893 base = self
893 base = self
894 introrev = self.introrev()
894 introrev = self.introrev()
895 if self.rev() != introrev:
895 if self.rev() != introrev:
896 base = filectx(self._repo, self._path, filelog=self.filelog(),
896 base = self.filectx(self.filenode(), changeid=introrev)
897 fileid=self.filenode(), changeid=introrev)
898
897
899 # This algorithm would prefer to be recursive, but Python is a
898 # This algorithm would prefer to be recursive, but Python is a
900 # bit recursion-hostile. Instead we do an iterative
899 # bit recursion-hostile. Instead we do an iterative
@@ -1000,11 +999,11 b' class filectx(basefilectx):'
1000 # considered when solving linkrev issue are on the table.
999 # considered when solving linkrev issue are on the table.
1001 return changectx(self._repo.unfiltered(), self._changeid)
1000 return changectx(self._repo.unfiltered(), self._changeid)
1002
1001
1003 def filectx(self, fileid):
1002 def filectx(self, fileid, changeid=None):
1004 '''opens an arbitrary revision of the file without
1003 '''opens an arbitrary revision of the file without
1005 opening a new filelog'''
1004 opening a new filelog'''
1006 return filectx(self._repo, self._path, fileid=fileid,
1005 return filectx(self._repo, self._path, fileid=fileid,
1007 filelog=self._filelog)
1006 filelog=self._filelog, changeid=changeid)
1008
1007
1009 def data(self):
1008 def data(self):
1010 try:
1009 try:
General Comments 0
You need to be logged in to leave comments. Login now