Show More
@@ -836,12 +836,12 b' def bisect(ui, repo, rev=None, extra=Non' | |||||
836 | Returns 0 on success. |
|
836 | Returns 0 on success. | |
837 | """ |
|
837 | """ | |
838 | def checkstate(state): |
|
838 | def checkstate(state): | |
839 |
if |
|
839 | if state['good'] and state['bad']: | |
|
840 | return True | |||
840 | if not state['good']: |
|
841 | if not state['good']: | |
841 | raise error.Abort(_('cannot bisect (no known good revisions)')) |
|
842 | raise error.Abort(_('cannot bisect (no known good revisions)')) | |
842 | else: |
|
843 | else: | |
843 | raise error.Abort(_('cannot bisect (no known bad revisions)')) |
|
844 | raise error.Abort(_('cannot bisect (no known bad revisions)')) | |
844 | return True |
|
|||
845 |
|
845 | |||
846 | # backward compatibility |
|
846 | # backward compatibility | |
847 | if rev in "good bad reset init".split(): |
|
847 | if rev in "good bad reset init".split(): |
General Comments 0
You need to be logged in to leave comments.
Login now