tests/notcapable
author Matt Mackall <mpm@selenic.com>
Wed, 23 Nov 2011 14:24:56 -0800
branchstable
changeset 15564 e45dadde2761
parent 14409 9ff996ba00b4
child 17192 1ac628cd7113
permissions -rw-r--r--
tests: remove test-casecollision-i18n.t The result of this test is quite suspect. Remove it for now as it now correctly breaks on HFS+.

# Disable the $CAP wire protocol capability.

if test -z "$CAP"
then
    echo "CAP environment variable not set."
fi

cat > notcapable-$CAP.py << EOF
from mercurial import extensions, repo
def extsetup():
    extensions.wrapfunction(repo.repository, 'capable', wrapper)
def wrapper(orig, self, name, *args, **kwargs):
    if name in '$CAP'.split(' '):
        return False
    return orig(self, name, *args, **kwargs)
EOF

echo '[extensions]' >> $HGRCPATH
echo "notcapable-$CAP = `pwd`/notcapable-$CAP.py" >> $HGRCPATH