--- a/mercurial/commands.py Wed Sep 03 19:01:35 2008 +0200
+++ b/mercurial/commands.py Wed Sep 03 19:00:43 2008 +0200
@@ -286,9 +286,6 @@
reset = True
elif extra or good + bad + skip + reset > 1:
raise util.Abort(_('incompatible arguments'))
- elif not (good or bad or skip or reset):
- ui.status(_('(no action selected)\n'))
- return
if reset:
p = repo.join("bisect.state")
@@ -327,7 +324,12 @@
del wlock
if not state['good'] or not state['bad']:
- return
+ if (good or bad or skip or reset):
+ return
+ if not state['good']:
+ raise util.Abort(_('cannot bisect (no known good revisions)'))
+ else:
+ raise util.Abort(_('cannot bisect (no known bad revisions)'))
# actually bisect
nodes, changesets, good = hbisect.bisect(repo.changelog, state)