equal
deleted
inserted
replaced
383 def cmp(self, fctx): |
383 def cmp(self, fctx): |
384 """compare with other file context |
384 """compare with other file context |
385 |
385 |
386 returns True if different than fctx. |
386 returns True if different than fctx. |
387 """ |
387 """ |
388 if (fctx._filerev is None and self._repo._encodefilterpats |
388 if (fctx._filerev is None |
|
389 and (self._repo._encodefilterpats |
|
390 # if file data starts with '\1\n', empty metadata block is |
|
391 # prepended, which adds 4 bytes to fielog.size(). |
|
392 or self.size() - 4 == fctx.size()) |
389 or self.size() == fctx.size()): |
393 or self.size() == fctx.size()): |
390 return self._filelog.cmp(self._filenode, fctx.data()) |
394 return self._filelog.cmp(self._filenode, fctx.data()) |
391 |
395 |
392 return True |
396 return True |
393 |
397 |