tests/test-repair-strip
changeset 11197 4bb4895e1693
parent 9284 4a1b24dbf753
equal deleted inserted replaced
11196:573bef78763f 11197:4bb4895e1693
     6 teststrip() {
     6 teststrip() {
     7     hg -q up -C $1
     7     hg -q up -C $1
     8     echo % before update $1, strip $2
     8     echo % before update $1, strip $2
     9     hg parents
     9     hg parents
    10     chmod -$3 $4
    10     chmod -$3 $4
    11     hg strip $2 2>&1 | sed 's/\(saving bundle to \).*/\1/' | sed 's/Permission denied.*\.hg\/store\/\(.*\)/Permission denied \.hg\/store\/\1/'
    11     hg strip $2 2>&1 | sed 's/\(bundle\).*/\1/' | sed 's/Permission denied.*\.hg\/store\/\(.*\)/Permission denied \.hg\/store\/\1/'
    12     echo % after update $1, strip $2
    12     echo % after update $1, strip $2
    13     chmod +$3 $4
    13     chmod +$3 $4
    14     hg verify
    14     hg verify
    15     echo % journal contents
    15     echo % journal contents
    16     if [ -f .hg/store/journal ]; then
    16     if [ -f .hg/store/journal ]; then