test-merge-types
36 lines
| 495 B
| text/plain
|
TextLexer
/ tests / test-merge-types
Bryan O'Sullivan
|
r5503 | #!/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 | ||||
Thomas Arendsen Hein
|
r5682 | if [ -h a ]; then | ||
Bryan O'Sullivan
|
r5503 | echo a is a symlink | ||
Thomas Arendsen Hein
|
r5683 | $TESTDIR/readlink.py a | ||
Bryan O'Sullivan
|
r5503 | elif [ -x a ]; then | ||
echo a is executable | ||||
fi | ||||
hg update -C 1 | ||||
hg merge | ||||
echo % symlink is right parent, executable is left | ||||
Thomas Arendsen Hein
|
r5682 | if [ -h a ]; then | ||
Bryan O'Sullivan
|
r5503 | echo a is a symlink | ||
Thomas Arendsen Hein
|
r5683 | $TESTDIR/readlink.py a | ||
Bryan O'Sullivan
|
r5503 | elif [ -x a ]; then | ||
echo a is executable | ||||
fi | ||||