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
line wrap: on
line diff
--- a/tests/test-symlinks	Fri Jan 05 21:28:49 2007 +0200
+++ b/tests/test-symlinks	Fri Feb 23 17:54:34 2007 +0200
@@ -55,3 +55,18 @@
 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