tests/test-keyword
branch0.9.2compat
changeset 397 db7cc16560d4
parent 387 ecb2935f9bb8
child 420 25f2d4cedd4c
equal deleted inserted replaced
388:05fbd226cb5c 397:db7cc16560d4
    29 hg init Test-bndl
    29 hg init Test-bndl
    30 cd Test-bndl
    30 cd Test-bndl
    31 
    31 
    32 echo % kwshrink should exit silently in empty/invalid repo
    32 echo % kwshrink should exit silently in empty/invalid repo
    33 hg kwshrink
    33 hg kwshrink
       
    34 
       
    35 # Symlinks cannot be created on Windows. The bundle was made with:
       
    36 #
       
    37 # hg init t
       
    38 # cd t
       
    39 # echo a > a
       
    40 # ln -s a sym
       
    41 # hg add sym
       
    42 # hg ci -m addsym -u mercurial
       
    43 # hg bundle --base null ../test-keyword.hg
       
    44 #
       
    45 hg pull -u "$TESTDIR/test-keyword.hg" \
       
    46     | sed 's/pulling from.*test-keyword.hg/pulling from test-keyword.hg/'
    34 
    47 
    35 echo 'expand $Id$' > a
    48 echo 'expand $Id$' > a
    36 echo 'do not process $Id:' >> a
    49 echo 'do not process $Id:' >> a
    37 echo 'xxx $' >> a
    50 echo 'xxx $' >> a
    38 echo 'ignore $Id$' > b
    51 echo 'ignore $Id$' > b
   136 
   149 
   137 echo % kwfiles
   150 echo % kwfiles
   138 hg kwfiles
   151 hg kwfiles
   139 
   152 
   140 echo % diff --rev
   153 echo % diff --rev
   141 hg diff --rev 0 | grep -v 'b/c'
   154 hg diff --rev 1 | grep -v 'b/c'
   142 
   155 
   143 echo % rollback
   156 echo % rollback
   144 hg rollback
   157 hg rollback
   145 echo % status
   158 echo % status
   146 hg status
   159 hg status
   198 echo % cat a
   211 echo % cat a
   199 cat a
   212 cat a
   200 
   213 
   201 echo % clone to test incoming
   214 echo % clone to test incoming
   202 cd ..
   215 cd ..
   203 hg clone -r0 Test Test-a
   216 hg clone -r1 Test Test-a
   204 cd Test-a
   217 cd Test-a
   205 cat <<EOF >> .hg/hgrc
   218 cat <<EOF >> .hg/hgrc
   206 [paths]
   219 [paths]
   207 default = ../Test
   220 default = ../Test
   208 EOF
   221 EOF