tests/test-keyword
branch0.9.2compat
changeset 644 b3d3788db7ef
parent 638 439e096ce144
child 673 b94f7991f06b
equal deleted inserted replaced
640:7e80fc29ba27 644:b3d3788db7ef
     2 
     2 
     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 =
       
     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
     7 [keyword]
    22 [keyword]
     8 * =
    23 * =
     9 b = ignore
    24 b = ignore
    10 [hooks]
    25 [hooks]
    11 commit=
    26 commit=
    12 commit.test=cp a hooktest
    27 commit.test=cp a hooktest
    13 EOF
    28 EOF
    14 
       
    15 echo % hg kwdemo
       
    16 hg --quiet kwdemo --default \
       
    17 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
       
    18  -e 's/,v [a-z0-9][a-z0-9]* /,v xxxxxxxxxxxx /' \
       
    19  -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \
       
    20  -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!'
       
    21 
       
    22 hg --quiet kwdemo "Branch = {branches}"
       
    23 
    29 
    24 hg init Test-bndl
    30 hg init Test-bndl
    25 cd Test-bndl
    31 cd Test-bndl
    26 
    32 
    27 echo % kwshrink should exit silently in empty/invalid repo
    33 echo % kwshrink should exit silently in empty/invalid repo