diff -r 07893690c435 -r a3e2b9a1f063 mercurial/context.py --- a/mercurial/context.py Sun Jan 15 13:37:33 2012 +0100 +++ b/mercurial/context.py Sun Jan 15 13:39:09 2012 +0100 @@ -371,7 +371,7 @@ if (fctx._filerev is None and (self._repo._encodefilterpats # if file data starts with '\1\n', empty metadata block is - # prepended, which adds 4 bytes to fielog.size(). + # prepended, which adds 4 bytes to filelog.size(). or self.size() - 4 == fctx.size()) or self.size() == fctx.size()): return self._filelog.cmp(self._filenode, fctx.data())