tests/test-keyword
changeset 294 343c5dd8dcda
parent 290 b05795ad5632
child 302 caa3d683cfcf
equal deleted inserted replaced
293:a7d568671575 294:343c5dd8dcda
     4 [extensions]
     4 [extensions]
     5 hgext.keyword =
     5 hgext.keyword =
     6 [keyword]
     6 [keyword]
     7 * =
     7 * =
     8 b = ignore
     8 b = ignore
       
     9 [hooks]
       
    10 commit=
       
    11 commit.test=cp a hooktest
     9 EOF
    12 EOF
    10 
    13 
    11 echo % help
    14 echo % help
    12 hg help keyword
    15 hg help keyword
    13 
    16 
    35 echo 'ignore $Id$' > b
    38 echo 'ignore $Id$' > b
    36 ln -s a sym
    39 ln -s a sym
    37 echo % cat
    40 echo % cat
    38 cat sym a b
    41 cat sym a b
    39 
    42 
    40 echo % default keyword expansion
    43 echo % default keyword expansion including commit hook
    41 echo % commit
    44 echo % commit
    42 hg --debug commit -A -mabsym -d '0 0' -u 'User Name <user@example.com>'
    45 hg --debug commit -A -mabsym -d '0 0' -u 'User Name <user@example.com>'
    43 echo % status
    46 echo % status
    44 hg status
    47 hg status
    45 echo % identify
    48 echo % identify
    46 hg --quiet identify
    49 hg --quiet identify
    47 echo % cat
    50 echo % cat
    48 cat sym a b
    51 cat sym a b
    49 echo % hg cat
    52 echo % hg cat
    50 hg cat sym a b
    53 hg cat sym a b
       
    54 
       
    55 echo
       
    56 echo % diff a hooktest
       
    57 diff a hooktest
       
    58 
       
    59 echo % removing commit hook from config
       
    60 sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook
       
    61 mv $HGRCPATH.nohook $HGRCPATH
       
    62 rm hooktest
    51 
    63 
    52 echo
    64 echo
    53 echo % touch
    65 echo % touch
    54 touch a b
    66 touch a b
    55 echo % status
    67 echo % status