[PATCH 2 of 3] add additional bisect tests
Bernhard Leiner
mailinglists.bleiner at gmail.com
Sat Aug 2 15:36:26 CDT 2008
# HG changeset patch
# User Bernhard Leiner <bleiner at gmail.com>
# Date 1217707854 -7200
# Node ID ef15a46f9dc243a7a551971ecb158ddd82fdf171
# Parent b324f125c5ddd136f52f84766cab61ffc17dcd45
add additional bisect tests
diff --git a/tests/test-bisect b/tests/test-bisect
--- a/tests/test-bisect
+++ b/tests/test-bisect
@@ -53,4 +53,18 @@
hg bisect -r
hg bisect -g null
hg bisect -bU tip
-hg id
\ No newline at end of file
+hg id
+
+# reproduce AssertionError (issue1228 and issue1182)
+hg bisect -r
+hg bisect -b 4
+hg bisect -g 0
+hg bisect -s
+hg bisect -s
+hg bisect -s
+
+# reproduce non converging bisect (issue1182)
+hg bisect -r
+hg bisect -g 0
+hg bisect -b 2
+hg bisect -s
diff --git a/tests/test-bisect.out b/tests/test-bisect.out
--- a/tests/test-bisect.out
+++ b/tests/test-bisect.out
@@ -241,3 +241,43 @@
error
Testing changeset 15:e7fa0811edb0 (32 changesets remaining, ~5 tests)
5cd978ea5149
+Testing changeset 2:db07c04beaca (4 changesets remaining, ~2 tests)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+Testing changeset 1:5cd978ea5149 (4 changesets remaining, ~2 tests)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+Testing changeset 3:b53bea5e2fcb (4 changesets remaining, ~2 tests)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+Due to skipped revisions, the first bad revision could be any of:
+changeset: 1:5cd978ea5149
+user: test
+date: Thu Jan 01 00:00:01 1970 +0000
+summary: msg 1
+
+changeset: 2:db07c04beaca
+user: test
+date: Thu Jan 01 00:00:02 1970 +0000
+summary: msg 2
+
+changeset: 3:b53bea5e2fcb
+user: test
+date: Thu Jan 01 00:00:03 1970 +0000
+summary: msg 3
+
+changeset: 4:9b2ba8336a65
+user: test
+date: Thu Jan 01 00:00:04 1970 +0000
+summary: msg 4
+
+Testing changeset 1:5cd978ea5149 (2 changesets remaining, ~1 tests)
+1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+Due to skipped revisions, the first bad revision could be any of:
+changeset: 1:5cd978ea5149
+user: test
+date: Thu Jan 01 00:00:01 1970 +0000
+summary: msg 1
+
+changeset: 2:db07c04beaca
+user: test
+date: Thu Jan 01 00:00:02 1970 +0000
+summary: msg 2
+
More information about the Mercurial-devel
mailing list