Mercurial > hg-stable
changeset 11538:16fe98804fd8 stable
workingfilectx.cmp: invert boolean return value
Apparently we mostly used filectx.cmp(workingfilectx.read()), so no error
was ever triggered, but since all cmp() methods return True when content
are different, that == should in fact be !=
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Fri, 09 Jul 2010 11:59:48 +0900 |
parents | 0a044e5ff489 |
children | a463e3c50212 |
files | mercurial/context.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Mon Jul 12 19:04:07 2010 +0900 +++ b/mercurial/context.py Fri Jul 09 11:59:48 2010 +0900 @@ -932,7 +932,7 @@ return (t, tz) def cmp(self, text): - return self._repo.wread(self._path) == text + return self._repo.wread(self._path) != text class memctx(object): """Use memctx to perform in-memory commits via localrepo.commitctx().