Show More
@@ -902,8 +902,7 b' def bisect(ui, repo, rev=None, extra=Non' | |||||
902 | cmdutil.checkunfinished(repo) |
|
902 | cmdutil.checkunfinished(repo) | |
903 |
|
903 | |||
904 | if reset: |
|
904 | if reset: | |
905 | if repo.vfs.exists("bisect.state"): |
|
905 | hbisect.resetstate(repo) | |
906 | repo.vfs.unlink("bisect.state") |
|
|||
907 | return |
|
906 | return | |
908 |
|
907 | |||
909 | state = hbisect.load_state(repo) |
|
908 | state = hbisect.load_state(repo) |
@@ -159,6 +159,11 b' def save_state(repo, state):' | |||||
159 | f.write("%s %s\n" % (kind, hex(node))) |
|
159 | f.write("%s %s\n" % (kind, hex(node))) | |
160 | f.close() |
|
160 | f.close() | |
161 |
|
161 | |||
|
162 | def resetstate(repo): | |||
|
163 | """remove any bisect state from the repository""" | |||
|
164 | if repo.vfs.exists("bisect.state"): | |||
|
165 | repo.vfs.unlink("bisect.state") | |||
|
166 | ||||
162 | def get(repo, status): |
|
167 | def get(repo, status): | |
163 | """ |
|
168 | """ | |
164 | Return a list of revision(s) that match the given status: |
|
169 | Return a list of revision(s) that match the given status: |
General Comments 0
You need to be logged in to leave comments.
Login now