changeset 10704:cfc89fecfe51 stable

filelog: text is stored modified when it starts with '\1\n'
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 16 Mar 2010 01:12:46 +0100
parents 35893dcfd40c
children d8d1b56d4519 67cb29dbb66e
files mercurial/filelog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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