Show More
@@ -1,4 +1,4 | |||||
1 | #!/usr/bin/env python |
|
1 | # bisect extension for mercurial | |
2 | # |
|
2 | # | |
3 | # This software may be used and distributed according to the terms |
|
3 | # This software may be used and distributed according to the terms | |
4 | # of the GNU General Public License, incorporated herein by reference. |
|
4 | # of the GNU General Public License, incorporated herein by reference. | |
@@ -161,7 +161,8 class bisect(object): | |||||
161 | if not self.goodrevs: |
|
161 | if not self.goodrevs: | |
162 | self.ui.warn("No good revision given\n") |
|
162 | self.ui.warn("No good revision given\n") | |
163 | self.ui.warn("Assuming the first revision is good\n") |
|
163 | self.ui.warn("Assuming the first revision is good\n") | |
164 |
ancestors, num_ancestors = self.__ancestors_and_nb_ancestors( |
|
164 | ancestors, num_ancestors = self.__ancestors_and_nb_ancestors( | |
|
165 | self.badrev) | |||
165 | tot = len(ancestors) |
|
166 | tot = len(ancestors) | |
166 | if tot == 1: |
|
167 | if tot == 1: | |
167 | if ancestors.pop() != self.badrev: |
|
168 | if ancestors.pop() != self.badrev: | |
@@ -280,7 +281,6 for subcommands see "hg bisect help\" | |||||
280 | return bisectcmdtable[cmd][0](*args) |
|
281 | return bisectcmdtable[cmd][0](*args) | |
281 |
|
282 | |||
282 | cmdtable = { |
|
283 | cmdtable = { | |
283 | "bisect": (bisect_run, [], |
|
284 | "bisect": (bisect_run, [], "hg bisect [help|init|reset|next|good|bad]"), | |
284 | "hg bisect [help|init|reset|next|good|bad]"), |
|
|||
285 | #"bisect-test": (test, [], "hg bisect-test rev"), |
|
285 | #"bisect-test": (test, [], "hg bisect-test rev"), | |
286 | } |
|
286 | } |
General Comments 0
You need to be logged in to leave comments.
Login now