tests/test-keyword
branchstable
changeset 389 d18a329bf222
parent 384 482c91f8c230
child 392 45a318c5ea20
equal deleted inserted replaced
375:ed160b097bad 389:d18a329bf222
    22  -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \
    22  -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \
    23  -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!'
    23  -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!'
    24 
    24 
    25 hg --quiet kwdemo "Branch = {branches}"
    25 hg --quiet kwdemo "Branch = {branches}"
    26 
    26 
    27 hg init Test
    27 hg init Test-bndl
    28 cd Test
    28 cd Test-bndl
    29 
    29 
    30 echo % kwshrink should exit silently in empty/invalid repo
    30 echo % kwshrink should exit silently in empty/invalid repo
    31 hg kwshrink
    31 hg kwshrink
    32 
    32 
    33 echo 'expand $Id$' > a
    33 echo 'expand $Id$' > a
    66 
    66 
    67 echo % removing commit hook from config
    67 echo % removing commit hook from config
    68 sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook
    68 sed -e '/\[hooks\]/,$ d' $HGRCPATH > $HGRCPATH.nohook
    69 mv $HGRCPATH.nohook $HGRCPATH
    69 mv $HGRCPATH.nohook $HGRCPATH
    70 rm hooktest
    70 rm hooktest
       
    71 
       
    72 echo % bundle
       
    73 hg bundle --base null ../kw.hg
       
    74 
       
    75 cd ..
       
    76 hg init Test
       
    77 cd Test
       
    78 
       
    79 echo % pull from bundle
       
    80 hg pull -u ../kw.hg
    71 
    81 
    72 echo % touch
    82 echo % touch
    73 touch a b
    83 touch a b
    74 echo % status
    84 echo % status
    75 hg status
    85 hg status
    88 echo % force expansion
    98 echo % force expansion
    89 hg -v kwexpand
    99 hg -v kwexpand
    90 echo % compare changenodes in a c
   100 echo % compare changenodes in a c
    91 cat a c
   101 cat a c
    92 
   102 
       
   103 echo % qinit -c
       
   104 hg qinit -c
    93 echo % qimport
   105 echo % qimport
    94 hg qimport -r tip -n mqtest.diff
   106 hg qimport -r tip -n mqtest.diff
       
   107 echo % qcommit
       
   108 hg qcommit -mqtest
    95 echo % keywords should not be expanded in patch
   109 echo % keywords should not be expanded in patch
    96 cat .hg/patches/mqtest.diff
   110 cat .hg/patches/mqtest.diff
    97 echo % qpop
   111 echo % qpop
    98 hg qpop
   112 hg qpop
    99 echo % qgoto - should imply qpush
   113 echo % qgoto - should imply qpush