tests/test-keyword
changeset 218 d7ddb4e378f3
parent 215 ff719fcc10a3
child 223 65a01675a944
equal deleted inserted replaced
217:e55e3f6c6608 218:d7ddb4e378f3
     7 * =
     7 * =
     8 b = ignore
     8 b = ignore
     9 EOF
     9 EOF
    10 
    10 
    11 echo % help
    11 echo % help
    12 # sed for backwards compatibility
    12 # grep for backwards compatibility
    13 hg help keyword \
    13 hg help keyword \
    14 | sed -e '/^list of commands/d' -e '/hg -v help keyword/d' -e '/^$/d'
    14 | grep -E -v '^list of commands|hg -v help keyword|^$'
    15 
    15 
    16 echo % hg kwdemo
    16 echo % hg kwdemo
    17 hg --quiet kwdemo --default \
    17 hg --quiet kwdemo --default \
    18 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
    18 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
    19  -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \
    19  -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \
    94 firstline
    94 firstline
    95 secondline
    95 secondline
    96 EOF
    96 EOF
    97 
    97 
    98 echo % interrupted commit
    98 echo % interrupted commit
    99 # redirection and sed for backwards compatibility
    99 # redirection and grep for backwards compatibility
   100 HGEDITOR=false hg commit 2>&1 | sed -e '/edit failed:/d'
   100 HGEDITOR=false hg commit 2>&1 | grep -F -v 'edit failed:'
   101 echo % status
   101 echo % status
   102 hg status
   102 hg status
   103 
   103 
   104 echo % commit
   104 echo % commit
   105 hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
   105 hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>'
   134 [paths]
   134 [paths]
   135 default = ../Test
   135 default = ../Test
   136 EOF
   136 EOF
   137 echo % incoming
   137 echo % incoming
   138 # remove path to temp dir for backwards compatibility
   138 # remove path to temp dir for backwards compatibility
   139 hg incoming | sed -e '/^comparing with/d'
   139 hg incoming | grep -v '^comparing with'
   140 
   140 
   141 echo % switch off expansion
   141 echo % switch off expansion
   142 cd ../Test
   142 cd ../Test
   143 echo % kwshrink
   143 echo % kwshrink
   144 hg --debug kwshrink
   144 hg --debug kwshrink