tests/test-merge-types
author Patrick Mezard <pmezard@gmail.com>
Mon, 24 Dec 2007 12:22:33 +0100
changeset 5689 c2d0ed7f4af8
parent 5685 57d29a45ffbc
child 5701 32c2832682a9
permissions -rwxr-xr-x
Move diffing missing file test and remove test-notfound No point to have a test dedicated to this diff behaviour.

#!/bin/sh

hg init
echo a > a
hg ci -Amadd

chmod +x a
hg ci -mexecutable

hg up 0
rm a
ln -s symlink a
hg ci -msymlink

hg merge

echo % symlink is left parent, executable is right

if [ -h a ]; then
    echo a is a symlink
    $TESTDIR/readlink.py a
elif [ -x a ]; then
    echo a is executable
fi

hg update -C 1
hg merge

echo % symlink is right parent, executable is left

if [ -h a ]; then
    echo a is a symlink
    $TESTDIR/readlink.py a
elif [ -x a ]; then
    echo a is executable
fi

echo "skipped: test is for a known, unfixed bug"
exit 80