tests/test-keyword
changeset 643 0c7f033354c7
parent 634 f2fa2ae4a4c9
child 653 f4b2fe9d23df
equal deleted inserted replaced
642:473c764ba2b7 643:0c7f033354c7
     3 cat <<EOF >> $HGRCPATH
     3 cat <<EOF >> $HGRCPATH
     4 [extensions]
     4 [extensions]
     5 hgext.keyword =
     5 hgext.keyword =
     6 hgext.mq =
     6 hgext.mq =
     7 hgext.notify =
     7 hgext.notify =
       
     8 EOF
       
     9 
       
    10 # demo before [keyword] files are set up
       
    11 # would succeed without uisetup otherwise
       
    12 echo % hg kwdemo
       
    13 hg --quiet kwdemo \
       
    14 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
       
    15  -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \
       
    16  -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \
       
    17  -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!'
       
    18 
       
    19 hg --quiet kwdemo "Branch = {branches}"
       
    20 
       
    21 cat <<EOF >> $HGRCPATH
     8 [keyword]
    22 [keyword]
     9 * =
    23 * =
    10 b = ignore
    24 b = ignore
    11 [hooks]
    25 [hooks]
    12 commit=
    26 commit=
    13 commit.test=cp a hooktest
    27 commit.test=cp a hooktest
    14 EOF
    28 EOF
    15 
       
    16 echo % hg kwdemo
       
    17 hg --quiet kwdemo --default \
       
    18 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
       
    19  -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \
       
    20  -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \
       
    21  -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!'
       
    22 
       
    23 hg --quiet kwdemo "Branch = {branches}"
       
    24 
    29 
    25 hg init Test-bndl
    30 hg init Test-bndl
    26 cd Test-bndl
    31 cd Test-bndl
    27 
    32 
    28 echo % kwshrink should exit silently in empty/invalid repo
    33 echo % kwshrink should exit silently in empty/invalid repo