hgkw/keyword.py
changeset 1042 91e083fab1a3
parent 998 cc54b798aca4
child 1073 bc8e57c1ae32
--- a/hgkw/keyword.py	Thu Jan 19 01:50:48 2012 +0100
+++ b/hgkw/keyword.py	Sun Jan 15 13:37:33 2012 +0100
@@ -680,7 +680,8 @@
         # not make sense
         if (fctx._filerev is None and
             (self._repo._encodefilterpats or
-             kwt.match(fctx.path()) and not 'l' in fctx.flags()) or
+             kwt.match(fctx.path()) and not 'l' in fctx.flags() or
+             self.size() - 4 == fctx.size()) or
             self.size() == fctx.size()):
             return self._filelog.cmp(self._filenode, fctx.data())
         return True