mercurial/context.py
changeset 12709 4147a292c508
parent 12361 2754c8273132
child 12731 95514b58709d
equal deleted inserted replaced
12708:8a08b12ae88e 12709:4147a292c508
   355     def cmp(self, fctx):
   355     def cmp(self, fctx):
   356         """compare with other file context
   356         """compare with other file context
   357 
   357 
   358         returns True if different than fctx.
   358         returns True if different than fctx.
   359         """
   359         """
       
   360         if not self._repo._encodefilterpats and self.size() != fctx.size():
       
   361             return True
       
   362 
   360         return self._filelog.cmp(self._filenode, fctx.data())
   363         return self._filelog.cmp(self._filenode, fctx.data())
   361 
   364 
   362     def renamed(self):
   365     def renamed(self):
   363         """check if file was actually renamed in this changeset revision
   366         """check if file was actually renamed in this changeset revision
   364 
   367