##// END OF EJS Templates
Fix and test 'hg backout' without or with too many revisions.
Thomas Arendsen Hein -
r4726:f6e961c0 default
parent child Browse files
Show More
@@ -169,6 +169,9 b' def backout(ui, repo, node=None, rev=Non'
169 169 if not rev:
170 170 rev = node
171 171
172 if not rev:
173 raise util.Abort(_("please specify a revision to backout"))
174
172 175 cmdutil.bail_if_changed(repo)
173 176 op1, op2 = repo.dirstate.parents()
174 177 if op2 != nullid:
@@ -2,9 +2,14 b''
2 2
3 3 HGMERGE=true; export HGMERGE
4 4
5 echo '# basic operation'
6 5 hg init basic
7 6 cd basic
7
8 echo '# should complain'
9 hg backout
10 hg backout -r 0 0
11
12 echo '# basic operation'
8 13 echo a > a
9 14 hg commit -d '0 0' -A -m a
10 15 echo b >> a
@@ -1,3 +1,6 b''
1 # should complain
2 abort: please specify a revision to backout
3 abort: please specify just one revision
1 4 # basic operation
2 5 adding a
3 6 reverting a
General Comments 0
You need to be logged in to leave comments. Login now