# HG changeset patch # User Nicolas Dumazet # Date 1278644388 -32400 # Node ID 16fe98804fd80fb3424f3a6140a0aa92afbcac3e # Parent 0a044e5ff489e3018b3d783e3ac6290cec12dafa 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 != diff -r 0a044e5ff489 -r 16fe98804fd8 mercurial/context.py --- 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().