tests/test-hook
changeset 1481 acd1832ebf31
parent 814 0902ffece4b4
child 1734 9488d53233b5
equal deleted inserted replaced
1480:ae0d8d632b83 1481:acd1832ebf31
     2 
     2 
     3 hg init
     3 hg init
     4 echo "[hooks]" > .hg/hgrc
     4 echo "[hooks]" > .hg/hgrc
     5 echo 'precommit = echo precommit hook' >> .hg/hgrc
     5 echo 'precommit = echo precommit hook' >> .hg/hgrc
     6 echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
     6 echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
       
     7 echo 'commit.b = echo commit hook b' >> .hg/hgrc
     7 echo a > a
     8 echo a > a
     8 hg add a
     9 hg add a
     9 hg commit -m "test" -d "0 0"
    10 hg commit -m "test" -d "0 0"