Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
equal
deleted
inserted
replaced
4136:eb5d4fec1487 | 4137:26596a6b6518 |
---|---|
53 | 53 |
54 echo '# try symlink outside repo to file inside' | 54 echo '# try symlink outside repo to file inside' |
55 ln -s x/f ../z | 55 ln -s x/f ../z |
56 # this should fail | 56 # this should fail |
57 hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || : | 57 hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || : |
58 | |
59 cd .. ; rm -r test | |
60 hg init test; cd test; | |
61 | |
62 echo '# try cloning symlink in a subdir' | |
63 echo '1. commit a symlink' | |
64 mkdir -p a/b/c | |
65 cd a/b/c | |
66 ln -s /path/to/symlink/source demo | |
67 cd ../../.. | |
68 hg stat | |
69 hg commit -A -m 'add symlink in a/b/c subdir' | |
70 echo '2. clone it' | |
71 cd .. | |
72 hg clone test testclone |