mercurial/commands.py
changeset 4726 f6e961c0155b
parent 4718 934275cd4526
child 4730 eadfaa9ec487
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -169,6 +169,9 @@ def backout(ui, repo, node=None, rev=Non
     if not rev:
         rev = node
 
+    if not rev:
+        raise util.Abort(_("please specify a revision to backout"))
+
     cmdutil.bail_if_changed(repo)
     op1, op2 = repo.dirstate.parents()
     if op2 != nullid: