# HG changeset patch # User Benoit Boissinot # Date 2010-03-16 00:12:46 # Node ID cfc89fecfe51b21cb26c08268ae64acd2bb0c856 # Parent 35893dcfd40cb0c7fd1bcd28a19158b19231a316 filelog: text is stored modified when it starts with '\1\n' diff --git a/mercurial/filelog.py b/mercurial/filelog.py --- a/mercurial/filelog.py +++ b/mercurial/filelog.py @@ -61,7 +61,7 @@ class filelog(revlog.revlog): """compare text with a given file revision""" # for renames, we have to go the slow way - if self.renamed(node): + if text.startswith('\1\n') or self.renamed(node): t2 = self.read(node) return t2 != text