Mercurial > public > mercurial-scm > hg
comparison mercurial/filelog.py @ 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 | f2618cacb485 |
children | d8d1b56d4519 |
comparison
equal
deleted
inserted
replaced
10701:35893dcfd40c | 10704:cfc89fecfe51 |
---|---|
59 | 59 |
60 def cmp(self, node, text): | 60 def cmp(self, node, text): |
61 """compare text with a given file revision""" | 61 """compare text with a given file revision""" |
62 | 62 |
63 # for renames, we have to go the slow way | 63 # for renames, we have to go the slow way |
64 if self.renamed(node): | 64 if text.startswith('\1\n') or self.renamed(node): |
65 t2 = self.read(node) | 65 t2 = self.read(node) |
66 return t2 != text | 66 return t2 != text |
67 | 67 |
68 return revlog.revlog.cmp(self, node, text) | 68 return revlog.revlog.cmp(self, node, text) |