tests/test-keyword
changeset 737 dc8fe24c628e
parent 735 cbb80aee425c
child 743 f2e3829bfbf0
equal deleted inserted replaced
736:38ef84cc9dd1 737:dc8fe24c628e
     3 cat <<EOF >> $HGRCPATH
     3 cat <<EOF >> $HGRCPATH
     4 [extensions]
     4 [extensions]
     5 keyword =
     5 keyword =
     6 mq =
     6 mq =
     7 notify =
     7 notify =
       
     8 record =
     8 transplant =
     9 transplant =
       
    10 [ui]
       
    11 interactive = true
     9 EOF
    12 EOF
    10 
    13 
    11 # demo before [keyword] files are set up
    14 # demo before [keyword] files are set up
    12 # would succeed without uisetup otherwise
    15 # would succeed without uisetup otherwise
    13 echo % hg kwdemo
    16 echo % hg kwdemo
   136 hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
   139 hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
   137 echo % force expansion
   140 echo % force expansion
   138 hg -v kwexpand
   141 hg -v kwexpand
   139 echo % compare changenodes in a c
   142 echo % compare changenodes in a c
   140 cat a c
   143 cat a c
       
   144 
       
   145 echo % record
       
   146 cp "$HGRCPATH" $HGRCPATH.bak
       
   147 sed -e '1 a \foo' a > a.tmp
       
   148 mv a.tmp a
       
   149 echo bar >> a
       
   150 hg record -d '1 10' -m rectest<<EOF
       
   151 y
       
   152 y
       
   153 n
       
   154 EOF
       
   155 echo
       
   156 hg identify
       
   157 hg status
       
   158 echo % cat modified file
       
   159 cat a
       
   160 hg diff | grep -v 'b/a'
       
   161 hg rollback
       
   162 hg update -C
   141 
   163 
   142 echo % init --mq
   164 echo % init --mq
   143 hg init --mq
   165 hg init --mq
   144 echo % qimport
   166 echo % qimport
   145 hg qimport -r tip -n mqtest.diff
   167 hg qimport -r tip -n mqtest.diff