Show More
@@ -172,13 +172,13 b' def resetstate(repo):' | |||
|
172 | 172 | def checkstate(state): |
|
173 | 173 | """check we have both 'good' and 'bad' to define a range |
|
174 | 174 | |
|
175 |
Raise |
|
|
175 | Raise StateError exception otherwise.""" | |
|
176 | 176 | if state[b'good'] and state[b'bad']: |
|
177 | 177 | return True |
|
178 | 178 | if not state[b'good']: |
|
179 |
raise error. |
|
|
179 | raise error.StateError(_(b'cannot bisect (no known good revisions)')) | |
|
180 | 180 | else: |
|
181 |
raise error. |
|
|
181 | raise error.StateError(_(b'cannot bisect (no known bad revisions)')) | |
|
182 | 182 | |
|
183 | 183 | |
|
184 | 184 | @contextlib.contextmanager |
@@ -364,7 +364,7 b' test no action' | |||
|
364 | 364 | $ hg bisect -r |
|
365 | 365 | $ hg bisect |
|
366 | 366 | abort: cannot bisect (no known good revisions) |
|
367 |
[2 |
|
|
367 | [20] | |
|
368 | 368 | |
|
369 | 369 | |
|
370 | 370 | reproduce AssertionError, issue1445 |
@@ -475,7 +475,7 b' test bisecting command' | |||
|
475 | 475 | $ hg bisect --command "\"$PYTHON\" \"$TESTTMP/script.py\" and some parameters" |
|
476 | 476 | changeset 31:58c80a7c8a40: good |
|
477 | 477 | abort: cannot bisect (no known bad revisions) |
|
478 |
[2 |
|
|
478 | [20] | |
|
479 | 479 | $ hg up -qr 0 |
|
480 | 480 | $ hg bisect --command "\"$PYTHON\" \"$TESTTMP/script.py\" and some parameters" |
|
481 | 481 | changeset 0:b99c7b9c8e11: bad |
@@ -545,7 +545,7 b' test the same case, this time with updat' | |||
|
545 | 545 | $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params" |
|
546 | 546 | changeset 31:58c80a7c8a40: good |
|
547 | 547 | abort: cannot bisect (no known bad revisions) |
|
548 |
[2 |
|
|
548 | [20] | |
|
549 | 549 | $ hg up -qr 0 |
|
550 | 550 | $ hg bisect --command "sh \"$TESTTMP/script.sh\" and some params" |
|
551 | 551 | changeset 0:b99c7b9c8e11: bad |
General Comments 0
You need to be logged in to leave comments.
Login now