Mercurial > hg > mercurial-source
diff 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 (2006-04-21) |
parents | 6c61646fee5e |
children | 0f550b87deb8 |
line wrap: on
line diff
--- a/tests/test-symlinks +++ b/tests/test-symlinks @@ -40,3 +40,18 @@ # it should show a.c, dir/a.o and dir/b.o deleted hg status hg status a.c + +echo '# test absolute path through symlink outside repo' +cd .. +p=`pwd` +hg init x +ln -s x y +cd x +touch f +hg add f +hg status $p/y/f + +echo '# try symlink outside repo to file inside' +ln -s x/f ../z +# this should fail +hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || :