tests/test-keyword.t
changeset 981 0b32ba113ad2
parent 928 e1bf64aaef4f
child 982 639bb4617c70
equal deleted inserted replaced
979:6cabb1c47f21 981:0b32ba113ad2
   268   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
   268   expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $
   269   do not process $Id:
   269   do not process $Id:
   270   xxx $
   270   xxx $
   271   ignore $Id$
   271   ignore $Id$
   272 
   272 
   273 Check whether expansion is filewise
   273 Check whether expansion is filewise and file mode is preserved
   274 
   274 
   275   $ echo '$Id$' > c
   275   $ echo '$Id$' > c
   276   $ echo 'tests for different changenodes' >> c
   276   $ echo 'tests for different changenodes' >> c
       
   277   $ chmod 600 c
       
   278   $ ls -l c | cut -b 1-10
       
   279   -rw-------
   277 
   280 
   278 commit file c
   281 commit file c
   279 
   282 
   280   $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
   283   $ hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
   281   adding c
   284   adding c
       
   285   $ ls -l c | cut -b 1-10
       
   286   -rw-------
   282 
   287 
   283 force expansion
   288 force expansion
   284 
   289 
   285   $ hg -v kwexpand
   290   $ hg -v kwexpand
   286   overwriting a expanding keywords
   291   overwriting a expanding keywords