##// END OF EJS Templates
basefilectx: move _repopath from filectx
Sean Farley -
r19577:b52d572a default
parent child Browse files
Show More
@@ -443,6 +443,10 b' class basefilectx(object):'
443 def _filerev(self):
443 def _filerev(self):
444 return self._filelog.rev(self._filenode)
444 return self._filelog.rev(self._filenode)
445
445
446 @propertycache
447 def _repopath(self):
448 return self._path
449
446 class filectx(basefilectx):
450 class filectx(basefilectx):
447 """A filecontext object makes access to data related to a particular
451 """A filecontext object makes access to data related to a particular
448 filerevision convenient."""
452 filerevision convenient."""
@@ -492,10 +496,6 b' class filectx(basefilectx):'
492 # considered when solving linkrev issue are on the table.
496 # considered when solving linkrev issue are on the table.
493 return changectx(self._repo.unfiltered(), self._changeid)
497 return changectx(self._repo.unfiltered(), self._changeid)
494
498
495 @propertycache
496 def _repopath(self):
497 return self._path
498
499 def __nonzero__(self):
499 def __nonzero__(self):
500 try:
500 try:
501 self._filenode
501 self._filenode
General Comments 0
You need to be logged in to leave comments. Login now