tests/test-clone-pull-corruption.t
branchstable
changeset 24838 b2c1ff96c1e1
parent 16962 d2fe9aaedcaf
child 34661 eb586ed5d8ce
equal deleted inserted replaced
24837:edf907bd8144 24838:b2c1ff96c1e1
    14 
    14 
    15 Add a hook to wait 5 seconds and then abort the commit
    15 Add a hook to wait 5 seconds and then abort the commit
    16 
    16 
    17   $ cd ../corrupted
    17   $ cd ../corrupted
    18   $ echo "[hooks]" >> .hg/hgrc
    18   $ echo "[hooks]" >> .hg/hgrc
    19   $ echo "pretxncommit = sh -c 'sleep 5; exit 1'" >> .hg/hgrc
    19   $ echo 'pretxncommit = sh -c "sleep 5; exit 1"' >> .hg/hgrc
    20 
    20 
    21 start a commit...
    21 start a commit...
    22 
    22 
    23   $ touch bar
    23   $ touch bar
    24   $ hg add bar
    24   $ hg add bar