tests/test-keyword
branch0.9.2compat
changeset 339 98336da24c5e
parent 334 578317f9e2f0
child 343 f5927e5574e6
equal deleted inserted replaced
334:578317f9e2f0 339:98336da24c5e
    43 echo % status
    43 echo % status
    44 hg status
    44 hg status
    45 
    45 
    46 echo % default keyword expansion including commit hook
    46 echo % default keyword expansion including commit hook
    47 #echo % interrupted commit should not change state or run commit hook
    47 #echo % interrupted commit should not change state or run commit hook
    48 #HGEDITOR=false hg --debug commit
    48 #hg --debug commit
    49 #echo % status
    49 #echo % status
    50 #hg status
    50 #hg status
    51 
    51 
    52 echo % commit
    52 echo % commit
    53 hg --debug commit -mab -d '0 0' -u 'User Name <user@example.com>'
    53 hg --debug commit -mab -d '0 0' -u 'User Name <user@example.com>'
    77 rm a b
    77 rm a b
    78 echo % update
    78 echo % update
    79 hg update
    79 hg update
    80 echo % cat
    80 echo % cat
    81 cat a b
    81 cat a b
       
    82 
       
    83 echo % check whether expansion is filewise
       
    84 echo '$Id$' > c
       
    85 echo 'tests for different changenodes' >> c
       
    86 echo % commit c
       
    87 hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
       
    88 echo % force expansion
       
    89 hg -v kwexpand
       
    90 echo % compare changenodes in a c
       
    91 cat a c
       
    92 echo % rollback and remove c
       
    93 hg rollback
       
    94 rm c
    82 
    95 
    83 echo % copy
    96 echo % copy
    84 hg cp a c
    97 hg cp a c
    85 
    98 
    86 echo % kwfiles added
    99 echo % kwfiles added
   128 cat <<EOF >> log
   141 cat <<EOF >> log
   129 firstline
   142 firstline
   130 secondline
   143 secondline
   131 EOF
   144 EOF
   132 
   145 
   133 #echo % interrupted commit
   146 #echo % interrupted commit should not change state
   134 ## redirection and grep for backwards compatibility
   147 #hg commit
   135 #HGEDITOR=false hg commit 2>&1 | grep -v 'edit failed:'
       
   136 #echo % status
   148 #echo % status
   137 #hg status
   149 #hg status
   138 
   150 
   139 echo % commit
   151 echo % commit
   140 hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
   152 hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
   204 cat a
   216 cat a
   205 echo % kwshrink a inside directory x
   217 echo % kwshrink a inside directory x
   206 hg --verbose kwshrink a
   218 hg --verbose kwshrink a
   207 echo % cat a
   219 echo % cat a
   208 cat a
   220 cat a
   209 cd - > /dev/null 2>&1
   221 cd ..
   210 
   222 
   211 echo % kwexpand nonexistent
   223 echo % kwexpand nonexistent
   212 hg kwexpand nonexistent
   224 hg kwexpand nonexistent
   213 
   225 
   214 echo % switch off expansion
   226 echo % switch off expansion