##// END OF EJS Templates
backout: improve confusing 'cannot backout change on a different branch' abort...
Mads Kiilerich -
r20791:8dd867bd default
parent child Browse files
Show More
@@ -439,7 +439,7 b' def backout(ui, repo, node=None, rev=Non'
439 op1, op2 = repo.dirstate.parents()
439 op1, op2 = repo.dirstate.parents()
440 a = repo.changelog.ancestor(op1, node)
440 a = repo.changelog.ancestor(op1, node)
441 if a != node:
441 if a != node:
442 raise util.Abort(_('cannot backout change on a different branch'))
442 raise util.Abort(_('cannot backout change that is not an ancestor'))
443
443
444 p1, p2 = repo.changelog.parents(node)
444 p1, p2 = repo.changelog.parents(node)
445 if p1 == nullid:
445 if p1 == nullid:
@@ -92,7 +92,7 b' across branch'
92 should fail
92 should fail
93
93
94 $ hg backout 1
94 $ hg backout 1
95 abort: cannot backout change on a different branch
95 abort: cannot backout change that is not an ancestor
96 [255]
96 [255]
97 $ echo c > c
97 $ echo c > c
98 $ hg ci -Am2
98 $ hg ci -Am2
@@ -108,7 +108,7 b' should fail'
108 should fail
108 should fail
109
109
110 $ hg backout 1
110 $ hg backout 1
111 abort: cannot backout change on a different branch
111 abort: cannot backout change that is not an ancestor
112 [255]
112 [255]
113 $ hg summary
113 $ hg summary
114 parent: 2:db815d6d32e6 tip
114 parent: 2:db815d6d32e6 tip
General Comments 0
You need to be logged in to leave comments. Login now