Show More
@@ -50,7 +50,7 b' class bisect(object):' | |||||
50 | if r: |
|
50 | if r: | |
51 | self.badrev = hg.bin(r.pop(0)) |
|
51 | self.badrev = hg.bin(r.pop(0)) | |
52 |
|
52 | |||
53 |
def |
|
53 | def write(self): | |
54 | if not os.path.isdir(self.path): |
|
54 | if not os.path.isdir(self.path): | |
55 | return |
|
55 | return | |
56 | f = self.opener(self.good_path, "w") |
|
56 | f = self.opener(self.good_path, "w") | |
@@ -288,7 +288,10 b' for subcommands see "hg bisect help\\"' | |||||
288 | if len(args) > bisectcmdtable[cmd][1]: |
|
288 | if len(args) > bisectcmdtable[cmd][1]: | |
289 | ui.warn(_("bisect: Too many arguments\n")) |
|
289 | ui.warn(_("bisect: Too many arguments\n")) | |
290 | return help_() |
|
290 | return help_() | |
291 | return bisectcmdtable[cmd][0](*args) |
|
291 | try: | |
|
292 | return bisectcmdtable[cmd][0](*args) | |||
|
293 | finally: | |||
|
294 | b.write() | |||
292 |
|
295 | |||
293 | cmdtable = { |
|
296 | cmdtable = { | |
294 | "bisect": (bisect_run, [], _("hg bisect [help|init|reset|next|good|bad]")), |
|
297 | "bisect": (bisect_run, [], _("hg bisect [help|init|reset|next|good|bad]")), |
General Comments 0
You need to be logged in to leave comments.
Login now