comparison mercurial/commands.py @ 6929:1b15d6e7cc3c

bisect: status message when no action is specified
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 21 Aug 2008 19:02:56 +0200
parents 1a4c66d741a2
children a58a611c320f 5ce625983208
comparison
equal deleted inserted replaced
6928:1a4c66d741a2 6929:1b15d6e7cc3c
283 elif cmd == "bad": 283 elif cmd == "bad":
284 bad = True 284 bad = True
285 else: 285 else:
286 reset = True 286 reset = True
287 elif extra or good + bad + skip + reset > 1: 287 elif extra or good + bad + skip + reset > 1:
288 raise util.Abort("Incompatible arguments") 288 raise util.Abort(_('incompatible arguments'))
289 elif not (good or bad or skip or reset):
290 ui.status(_('(no action selected)\n'))
291 return
289 292
290 if reset: 293 if reset:
291 p = repo.join("bisect.state") 294 p = repo.join("bisect.state")
292 if os.path.exists(p): 295 if os.path.exists(p):
293 os.unlink(p) 296 os.unlink(p)