tests/test-bisect
author Matt Mackall <mpm@selenic.com>
Thu, 27 Dec 2007 23:55:40 -0600
changeset 5735 9079081b8982
parent 2990 61fcd9fac434
child 5775 2dd202a6e15b
permissions -rwxr-xr-x
bisect: use more standard command syntax and help

#!/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 -r
hg bisect -b
hg bisect -g 1
hg bisect -g
hg bisect -g
hg bisect -g
hg bisect -b
hg bisect -g