tests/test-bisect
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 29 Oct 2006 16:33:46 +0100
changeset 3586 66a17364c30e
parent 2976 61fcd9fac434
permissions -rwxr-xr-x
filelog: rename filelog.size() to filelog.len() filelog.size() is misleading for users of revlog.size() since it doesn't return the size of the revision.

#!/bin/sh

set -e

echo "[extensions]" >> $HGRCPATH
echo "hbisect=" >> $HGRCPATH

echo % init
hg init

echo % committing changes
count=0
echo > a
while test $count -lt 32 ; do
    echo 'a' >> a
    test $count -eq 0 && hg add
    hg ci -m "msg $count" -d "$count 0"
    echo % committed changeset $count
    count=`expr $count + 1`
done

echo % log
hg log

echo % hg up -C
hg up -C

echo % bisect test
hg bisect init
hg bisect bad
hg bisect good 1
hg bisect good
hg bisect good
hg bisect good
hg bisect bad
hg bisect good