comparison tests/test-bisect @ 2924:d62ce27d925a

tests: new test for the bisect extension
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Tue, 15 Aug 2006 21:49:49 +0300
parents
children 14b4ad613dd8
comparison
equal deleted inserted replaced
2923:cd47230a4eb9 2924:d62ce27d925a
1 #!/bin/sh
2
3 set -e
4
5 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
6 echo "[extensions]" >> $HGTMP/.hgrc
7 echo "hbisect=" >> $HGTMP/.hgrc
8
9 echo % init
10 hg init
11
12 echo % committing changes
13 count=0
14 echo > a
15 while test $count -lt 32 ; do
16 echo 'a' >> a
17 test $count -eq 0 && hg add
18 hg ci -m "msg $count" -d "$count 0"
19 echo % committed changeset $count
20 count=$(( $count + 1 ))
21 done
22
23 echo % log
24 hg log
25
26 echo % hg up -C
27 hg up -C
28
29 echo % bisect test
30 hg bisect init
31 hg bisect bad
32 hg bisect good 1
33 hg bisect good
34 hg bisect good
35 hg bisect good
36 hg bisect bad
37 hg bisect good