Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 15872:a3e2b9a1f063 stable
filectx: typo in comment
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sun, 15 Jan 2012 13:39:09 +0100 |
parents | 012b285cf643 |
children | 933b9ff73750 |
comparison
equal
deleted
inserted
replaced
15871:07893690c435 | 15872:a3e2b9a1f063 |
---|---|
369 returns True if different than fctx. | 369 returns True if different than fctx. |
370 """ | 370 """ |
371 if (fctx._filerev is None | 371 if (fctx._filerev is None |
372 and (self._repo._encodefilterpats | 372 and (self._repo._encodefilterpats |
373 # if file data starts with '\1\n', empty metadata block is | 373 # if file data starts with '\1\n', empty metadata block is |
374 # prepended, which adds 4 bytes to fielog.size(). | 374 # prepended, which adds 4 bytes to filelog.size(). |
375 or self.size() - 4 == fctx.size()) | 375 or self.size() - 4 == fctx.size()) |
376 or self.size() == fctx.size()): | 376 or self.size() == fctx.size()): |
377 return self._filelog.cmp(self._filenode, fctx.data()) | 377 return self._filelog.cmp(self._filenode, fctx.data()) |
378 | 378 |
379 return True | 379 return True |