Mercurial > hg
comparison tests/test-symlinks @ 2115:fd77b7ee4aac
Fix issue 165: `hg status' with abs path containing a symlink-to-dir fails
author | Jim Meyering <list+hg@meyering.net> |
---|---|
date | Fri, 21 Apr 2006 16:09:43 -0700 |
parents | 6c61646fee5e |
children | 0f550b87deb8 |
comparison
equal
deleted
inserted
replaced
2114:98cc126f9f3f | 2115:fd77b7ee4aac |
---|---|
38 ln -sf nonexist dir/b.o | 38 ln -sf nonexist dir/b.o |
39 mkfifo a.c | 39 mkfifo a.c |
40 # it should show a.c, dir/a.o and dir/b.o deleted | 40 # it should show a.c, dir/a.o and dir/b.o deleted |
41 hg status | 41 hg status |
42 hg status a.c | 42 hg status a.c |
43 | |
44 echo '# test absolute path through symlink outside repo' | |
45 cd .. | |
46 p=`pwd` | |
47 hg init x | |
48 ln -s x y | |
49 cd x | |
50 touch f | |
51 hg add f | |
52 hg status $p/y/f | |
53 | |
54 echo '# try symlink outside repo to file inside' | |
55 ln -s x/f ../z | |
56 # this should fail | |
57 hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || : |