tests/test-hook
changeset 1933 7544700fd931
parent 1736 50de0887bbcd
child 2155 ff255b41b4aa
equal deleted inserted replaced
1932:82995896d5af 1933:7544700fd931
     8 echo 'commit.b = echo commit hook b' >> .hg/hgrc
     8 echo 'commit.b = echo commit hook b' >> .hg/hgrc
     9 echo 'precommit = echo precommit hook: p1=$HG_PARENT1 p2=$HG_PARENT2' >> .hg/hgrc
     9 echo 'precommit = echo precommit hook: p1=$HG_PARENT1 p2=$HG_PARENT2' >> .hg/hgrc
    10 echo 'pretxncommit = echo pretxncommit hook: n=$HG_NODE p1=$HG_PARENT1 p2=$HG_PARENT2; hg -q tip' >> .hg/hgrc
    10 echo 'pretxncommit = echo pretxncommit hook: n=$HG_NODE p1=$HG_PARENT1 p2=$HG_PARENT2; hg -q tip' >> .hg/hgrc
    11 echo a > a
    11 echo a > a
    12 hg add a
    12 hg add a
    13 hg commit -m a -d "0 0"
    13 hg commit -m a -d "1000000 0"
    14 
    14 
    15 hg clone . ../b
    15 hg clone . ../b
    16 cd ../b
    16 cd ../b
    17 
    17 
    18 # changegroup hooks can see env vars
    18 # changegroup hooks can see env vars