##// 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 class basefilectx(object):
893 893 base = self
894 894 introrev = self.introrev()
895 895 if self.rev() != introrev:
896 base = filectx(self._repo, self._path, filelog=self.filelog(),
897 fileid=self.filenode(), changeid=introrev)
896 base = self.filectx(self.filenode(), changeid=introrev)
898 897
899 898 # This algorithm would prefer to be recursive, but Python is a
900 899 # bit recursion-hostile. Instead we do an iterative
@@ -1000,11 +999,11 class filectx(basefilectx):
1000 999 # considered when solving linkrev issue are on the table.
1001 1000 return changectx(self._repo.unfiltered(), self._changeid)
1002 1001
1003 def filectx(self, fileid):
1002 def filectx(self, fileid, changeid=None):
1004 1003 '''opens an arbitrary revision of the file without
1005 1004 opening a new filelog'''
1006 1005 return filectx(self._repo, self._path, fileid=fileid,
1007 filelog=self._filelog)
1006 filelog=self._filelog, changeid=changeid)
1008 1007
1009 1008 def data(self):
1010 1009 try:
General Comments 0
You need to be logged in to leave comments. Login now