sapling/tests/test-merge-types

40 lines
643 B
Plaintext
Raw Normal View History

#!/bin/sh
hg init
echo a > a
2007-12-28 07:27:43 +03:00
hg ci -Amadd # 0
chmod +x a
2007-12-28 07:27:43 +03:00
hg ci -mexecutable # 1
hg up 0
rm a
ln -s symlink a
2007-12-28 07:27:43 +03:00
hg ci -msymlink # 2
hg merge --debug
2007-12-28 07:27:43 +03:00
echo % symlink is local parent, executable is other
if [ -h a ]; then
echo a is a symlink
$TESTDIR/readlink.py a
elif [ -x a ]; then
echo a is executable
2007-12-28 08:55:36 +03:00
else
echo "a has no flags (default for conflicts)"
fi
hg update -C 1
2007-12-28 07:27:43 +03:00
hg merge --debug
2007-12-28 07:27:43 +03:00
echo % symlink is other parent, executable is local
if [ -h a ]; then
echo a is a symlink
$TESTDIR/readlink.py a
elif [ -x a ]; then
echo a is executable
2007-12-28 08:55:36 +03:00
else
echo "a has no flags (default for conflicts)"
fi