comparison mercurial/commands.py @ 8802:ca14b3982ffe

bisect: fix traceback when command executable is not found
author Patrick Mezard <pmezard@gmail.com>
date Sat, 13 Jun 2009 22:42:13 +0200
parents 708938509732
children 2726a6df11e9
comparison
equal deleted inserted replaced
8794:1c610db4a897 8802:ca14b3982ffe
337 337
338 state = hbisect.load_state(repo) 338 state = hbisect.load_state(repo)
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:
345 # update state 347 # update state
346 status = subprocess.call([commandpath]) 348 status = subprocess.call([commandpath])