equal
deleted
inserted
replaced
81 hg bisect -s |
81 hg bisect -s |
82 hg bisect -s |
82 hg bisect -s |
83 hg bisect -s |
83 hg bisect -s |
84 hg bisect -g |
84 hg bisect -g |
85 |
85 |
|
86 set +e |
|
87 |
86 echo % test invalid command |
88 echo % test invalid command |
87 hg bisect -r |
89 hg bisect -r |
88 hg bisect --command 'foobar' |
90 hg bisect --command 'foobar' |
|
91 |
|
92 echo % test bisecting command |
|
93 cat > script.py <<EOF |
|
94 #!/usr/bin/env python |
|
95 import sys |
|
96 from mercurial import ui, hg |
|
97 repo = hg.repository(ui.ui(), '.') |
|
98 if repo['.'].rev() < 6: |
|
99 sys.exit(1) |
|
100 EOF |
|
101 chmod +x script.py |
|
102 hg bisect -r |
|
103 hg bisect --good tip |
|
104 hg bisect --bad 0 |
|
105 hg bisect --command "`pwd`/script.py" |
|
106 true |