hgkw/keyword.py
branchstable
changeset 1043 93ced643068d
parent 1042 91e083fab1a3
child 1073 bc8e57c1ae32
--- a/hgkw/keyword.py	Wed Jan 18 16:46:15 2012 +0100
+++ b/hgkw/keyword.py	Thu Jan 19 02:01:05 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