##// END OF EJS Templates
convert: fix test-convert-svn-* problems with mtime not changing...
convert: fix test-convert-svn-* problems with mtime not changing The `svn commit` command does not detect changed files unless their mtime has changed. A quick succession of, for instance, `svn co ...; echo x >> y; svn ci` can thus lead to the change to y being ignored. Edited by pmezard to write in binary mode.

File last commit:

r6258:c24f4b3f default
r6439:c1b47c0f default
Show More
test-symlink-basic
50 lines | 870 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
Alexis S. L. Carvalho
Fix issue995 (copy --after and symlinks pointing to a directory)...
r6258
echo '% issue995'
hg up -C
mkdir dir
ln -s dir dirlink
hg ci -qAm 'add dirlink'
mkdir newdir
mv dir newdir/dir
mv dirlink newdir/dirlink
hg mv -A dirlink newdir/dirlink