##// END OF EJS Templates
context: error out if basefilectx.cmp() is called without self._filenode...
Yuya Nishihara -
r41027:21ffe6b9 default
parent child Browse files
Show More
@@ -702,6 +702,10 b' class basefilectx(object):'
702 702 if fctx._customcmp:
703 703 return fctx.cmp(self)
704 704
705 if self._filenode is None:
706 raise error.ProgrammingError(
707 'filectx.cmp() must be reimplemented if not backed by revlog')
708
705 709 if fctx._filenode is None:
706 710 if self._repo._encodefilterpats:
707 711 # can't rely on size() because wdir content may be decoded
General Comments 0
You need to be logged in to leave comments. Login now