filelog: text is stored modified when it starts with '\1\n' stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 16 Mar 2010 01:12:46 +0100
branchstable
changeset 10704 cfc89fecfe51
parent 10701 35893dcfd40c
child 10706 d8d1b56d4519
child 10709 67cb29dbb66e
filelog: text is stored modified when it starts with '\1\n'
mercurial/filelog.py
--- a/mercurial/filelog.py	Mon Mar 15 19:55:52 2010 +0100
+++ b/mercurial/filelog.py	Tue Mar 16 01:12:46 2010 +0100
@@ -61,7 +61,7 @@
         """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