Mercurial > hg > mercurial-crew-with-dirclash
changeset 4726:f6e961c0155b
Fix and test 'hg backout' without or with too many revisions.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 26 Jun 2007 15:28:17 +0200 |
parents | cf8b8f62688a |
children | 79cc512a34ed |
files | mercurial/commands.py tests/test-backout tests/test-backout.out |
diffstat | 3 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: