tests/test-keyword
changeset 765 c5badbf855db
parent 743 f2e3829bfbf0
child 773 9f939fae8ff3
equal deleted inserted replaced
764:b8234da61635 765:c5badbf855db
   140 echo % force expansion
   140 echo % force expansion
   141 hg -v kwexpand
   141 hg -v kwexpand
   142 echo % compare changenodes in a c
   142 echo % compare changenodes in a c
   143 cat a c
   143 cat a c
   144 
   144 
   145 echo % record
   145 echo % record chunk
   146 python -c \
   146 python -c \
   147 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);'
   147 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);'
   148 hg record -d '1 10' -m rectest<<EOF
   148 hg record -d '1 10' -m rectest<<EOF
   149 y
   149 y
   150 y
   150 y
   154 hg identify
   154 hg identify
   155 hg status
   155 hg status
   156 echo % cat modified file
   156 echo % cat modified file
   157 cat a
   157 cat a
   158 hg diff | grep -v 'b/a'
   158 hg diff | grep -v 'b/a'
       
   159 hg rollback
       
   160 
       
   161 echo % record file
       
   162 echo foo > msg
       
   163 # do not use "hg record -m" here!
       
   164 hg record -l msg -d '1 11'<<EOF
       
   165 y
       
   166 y
       
   167 y
       
   168 EOF
       
   169 echo % a should be clean
       
   170 hg status -A a
       
   171 rm msg
   159 hg rollback
   172 hg rollback
   160 hg update -C
   173 hg update -C
   161 
   174 
   162 echo % init --mq
   175 echo % init --mq
   163 hg init --mq
   176 hg init --mq