tests/test-repair-strip.t
changeset 44355 7a4e1d245f19
parent 43804 76d32a0edbc6
child 49826 c84844cd523a
equal deleted inserted replaced
44354:2e2cfc3bea0b 44355:7a4e1d245f19
    23   >   if [ -f .hg/store/journal ]; then
    23   >   if [ -f .hg/store/journal ]; then
    24   >       cat .hg/store/journal | "$PYTHON" $TESTTMP/dumpjournal.py
    24   >       cat .hg/store/journal | "$PYTHON" $TESTTMP/dumpjournal.py
    25   >   else
    25   >   else
    26   >       echo "(no journal)"
    26   >       echo "(no journal)"
    27   >   fi
    27   >   fi
    28   >   ls .hg/store/journal >/dev/null 2>&1 && hg recover
    28   >   if ls .hg/store/journal >/dev/null 2>&1; then
       
    29   >     hg recover --verify
       
    30   >   fi
    29   >   ls .hg/strip-backup/* >/dev/null 2>&1 && hg unbundle -q .hg/strip-backup/*
    31   >   ls .hg/strip-backup/* >/dev/null 2>&1 && hg unbundle -q .hg/strip-backup/*
    30   >   rm -rf .hg/strip-backup
    32   >   rm -rf .hg/strip-backup
    31   > }
    33   > }
    32 
    34 
    33   $ hg init test
    35   $ hg init test