##// END OF EJS Templates
bisect: fix traceback when command executable is not found
Patrick Mezard -
r8802:ca14b398 default
parent child Browse files
Show More
@@ -339,6 +339,8 b' def bisect(ui, repo, rev=None, extra=Non'
339
339
340 if command:
340 if command:
341 commandpath = util.find_exe(command)
341 commandpath = util.find_exe(command)
342 if commandpath is None:
343 raise util.Abort(_("cannot find executable: %s") % command)
342 changesets = 1
344 changesets = 1
343 try:
345 try:
344 while changesets:
346 while changesets:
@@ -82,3 +82,7 b' hg bisect -s'
82 hg bisect -s
82 hg bisect -s
83 hg bisect -s
83 hg bisect -s
84 hg bisect -g
84 hg bisect -g
85
86 echo % test invalid command
87 hg bisect -r
88 hg bisect --command 'foobar'
@@ -303,3 +303,5 b' user: test'
303 date: Thu Jan 01 00:00:06 1970 +0000
303 date: Thu Jan 01 00:00:06 1970 +0000
304 summary: msg 6
304 summary: msg 6
305
305
306 % test invalid command
307 abort: cannot find executable: foobar
General Comments 0
You need to be logged in to leave comments. Login now