Mercurial > public > mercurial-scm > hg-stable
diff mercurial/filelog.py @ 11540:2370e270a29a stable
filelog: test behaviour for data starting with "\1\n"
Because "\1\n" is a separator for metadata, data starting with "\1\n" is
handled specifically. It was not tested.
size() call return incorrect data if original data had been "\1\n-escaped".
There's no obvious way to fix it for now, just flag the error in the code
and add an "expected failure" kind of test.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 05 Jul 2010 18:43:46 +0900 |
parents | a463e3c50212 |
children | ab9fa7a85dd9 |
line wrap: on
line diff
--- a/mercurial/filelog.py Fri Jul 09 11:02:39 2010 +0900 +++ b/mercurial/filelog.py Mon Jul 05 18:43:46 2010 +0900 @@ -53,6 +53,7 @@ if self.renamed(node): return len(self.read(node)) + # XXX if self.read(node).startswith("\1\n"), this returns (size+4) return revlog.revlog.size(self, rev) def cmp(self, node, text):