tests/test-keyword
changeset 6051 1038b1458d7a
parent 5894 e181665c1c79
child 6061 de08788511d7
equal deleted inserted replaced
6050:adf73753eb7d 6051:1038b1458d7a
    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