test-merge-types
39 lines
| 643 B
| text/plain
|
TextLexer
/ tests / test-merge-types
Bryan O'Sullivan
|
r5503 | #!/bin/sh | ||
hg init | ||||
echo a > a | ||||
Matt Mackall
|
r5701 | hg ci -Amadd # 0 | ||
Bryan O'Sullivan
|
r5503 | |||
chmod +x a | ||||
Matt Mackall
|
r5701 | hg ci -mexecutable # 1 | ||
Bryan O'Sullivan
|
r5503 | |||
hg up 0 | ||||
rm a | ||||
ln -s symlink a | ||||
Matt Mackall
|
r5701 | hg ci -msymlink # 2 | ||
hg merge --debug | ||||
Bryan O'Sullivan
|
r5503 | |||
Matt Mackall
|
r5701 | echo % symlink is local parent, executable is other | ||
Bryan O'Sullivan
|
r5503 | |||
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 | ||||
Matt Mackall
|
r5710 | else | ||
echo "a has no flags (default for conflicts)" | ||||
Bryan O'Sullivan
|
r5503 | fi | ||
hg update -C 1 | ||||
Matt Mackall
|
r5701 | hg merge --debug | ||
Bryan O'Sullivan
|
r5503 | |||
Matt Mackall
|
r5701 | echo % symlink is other parent, executable is local | ||
Bryan O'Sullivan
|
r5503 | |||
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 | ||||
Matt Mackall
|
r5710 | else | ||
echo "a has no flags (default for conflicts)" | ||||
Bryan O'Sullivan
|
r5503 | fi | ||