mercurial/context.py
changeset 28116 ba8257cb53e8
parent 28017 d3f1b7ee5e70
child 28306 1778770e1982
equal deleted inserted replaced
28115:bd279da57e4b 28116:ba8257cb53e8
   787         returns True if different than fctx.
   787         returns True if different than fctx.
   788         """
   788         """
   789         if fctx._customcmp:
   789         if fctx._customcmp:
   790             return fctx.cmp(self)
   790             return fctx.cmp(self)
   791 
   791 
   792         if (fctx._filerev is None
   792         if (fctx._filenode is None
   793             and (self._repo._encodefilterpats
   793             and (self._repo._encodefilterpats
   794                  # if file data starts with '\1\n', empty metadata block is
   794                  # if file data starts with '\1\n', empty metadata block is
   795                  # prepended, which adds 4 bytes to filelog.size().
   795                  # prepended, which adds 4 bytes to filelog.size().
   796                  or self.size() - 4 == fctx.size())
   796                  or self.size() - 4 == fctx.size())
   797             or self.size() == fctx.size()):
   797             or self.size() == fctx.size()):