tests/test-mq-symlinks
changeset 9586 d08099e74b81
parent 9585 ea1935e2020a
child 10397 8cb81d75730c
equal deleted inserted replaced
9585:ea1935e2020a 9586:d08099e74b81
     8 hg init
     8 hg init
     9 hg qinit
     9 hg qinit
    10 hg qnew base.patch
    10 hg qnew base.patch
    11 echo aaa > a
    11 echo aaa > a
    12 echo bbb > b
    12 echo bbb > b
    13 hg add a b
    13 echo ccc > c
       
    14 hg add a b c
    14 hg qrefresh
    15 hg qrefresh
    15 $TESTDIR/readlink.py a
    16 $TESTDIR/readlink.py a
    16 
    17 
    17 echo '% test replacing a file with a symlink'
    18 echo '% test replacing a file with a symlink'
    18 hg qnew symlink.patch
    19 hg qnew symlink.patch
    23 
    24 
    24 hg qpop
    25 hg qpop
    25 hg qpush
    26 hg qpush
    26 $TESTDIR/readlink.py a
    27 $TESTDIR/readlink.py a
    27 
    28 
       
    29 echo '% test updating a symlink'
       
    30 rm a
       
    31 ln -s c a
       
    32 hg qnew --git -f updatelink
       
    33 $TESTDIR/readlink.py a
       
    34 hg qpop
       
    35 hg qpush --debug
       
    36 $TESTDIR/readlink.py a
       
    37 hg st
       
    38 
       
    39 echo '% test replacing a symlink with a file'
       
    40 ln -s c s
       
    41 hg add s
       
    42 hg qnew --git -f addlink
       
    43 rm s
       
    44 echo sss > s
       
    45 hg qnew --git -f replacelinkwithfile
       
    46 hg qpop
       
    47 hg qpush
       
    48 cat s
       
    49 hg st
       
    50 
    28 echo '% test symlink removal' 
    51 echo '% test symlink removal' 
    29 hg qnew removesl.patch
    52 hg qnew removesl.patch
    30 hg rm a
    53 hg rm a
    31 hg qrefresh --git
    54 hg qrefresh --git
    32 hg qpop
    55 hg qpop