tests/test-symlinks
changeset 2115 fd77b7ee4aac
parent 1620 6c61646fee5e
child 3750 0f550b87deb8
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; } || :