##// END OF EJS Templates
setup.py: skip inotify if there's no inotify_add_watch...
setup.py: skip inotify if there's no inotify_add_watch Debian Etch doesn't include a sys/inotify.h header, which makes it impossible to compile _inotify.c, making hg uninstallable. The cc.has_function() method is implemented by trying to compile a simple C program. Since there's no redirection involved all error messages are sent to the terminal. This is not particularly pretty but at least it allows the installation to complete.

File last commit:

r6112:5ffa9627 default
r6245:0d0939b2 default
Show More
test-symlink-basic
40 lines | 700 B | text/plain | TextLexer
/ tests / test-symlink-basic
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 #!/bin/sh
Patrick Mezard
test-symlink-basic: require symlinks availability
r4882 "$TESTDIR/hghave" symlink || exit 80
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 hg init a
cd a
ln -s nothing dangling
Alexis S. L. Carvalho
cmdutil.commit: use relative paths in the error messages...
r6112 hg commit -m 'commit symlink without adding' dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274 hg add dangling
Alexis S. L. Carvalho
cmdutil.commit: use relative paths in the error messages...
r6112 hg commit -m 'add symlink'
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
hg tip -v
hg manifest --debug
echo '% rev 0:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
rm dangling
ln -s void dangling
hg commit -m 'change symlink'
echo '% rev 1:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% modifying link'
rm dangling
ln -s empty dangling
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% reverting to rev 0:'
hg revert -r 0 -a
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
echo '% backups:'
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py *.orig
Alexis S. L. Carvalho
Add some tests for symlink tracking
r4274
rm *.orig
hg up -C
echo '% copies'
hg cp -v dangling dangling2
hg st -Cmard
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 $TESTDIR/readlink.py dangling dangling2