Mercurial > hg
view tests/test-issue1438 @ 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 | 2c5b2abfb8be |
children |
line wrap: on
line source
#!/bin/sh "$TESTDIR/hghave" symlink || exit 80 rm -rf a hg init a cd a ln -s foo link hg add link hg ci -mbad link hg rm link hg ci -mok hg diff -g -r 0:1 > bad.patch hg up 0 hg import --no-commit bad.patch hg st