Mercurial > hg > mercurial-crew-with-dirclash
diff tests/test-symlinks @ 4137:26596a6b6518
Create the parent directory when checking out symlinks.
author | Giorgos Keramidas <keramida@ceid.upatras.gr> |
---|---|
date | Fri, 23 Feb 2007 17:54:34 +0200 |
parents | 9dcf9d45cab8 |
children | 25d753efd48e |
line wrap: on
line diff
--- a/tests/test-symlinks +++ b/tests/test-symlinks @@ -55,3 +55,18 @@ echo '# try symlink outside repo to file ln -s x/f ../z # this should fail hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || : + +cd .. ; rm -r test +hg init test; cd test; + +echo '# try cloning symlink in a subdir' +echo '1. commit a symlink' +mkdir -p a/b/c +cd a/b/c +ln -s /path/to/symlink/source demo +cd ../../.. +hg stat +hg commit -A -m 'add symlink in a/b/c subdir' +echo '2. clone it' +cd .. +hg clone test testclone