##// 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 439 op1, op2 = repo.dirstate.parents()
440 440 a = repo.changelog.ancestor(op1, node)
441 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 444 p1, p2 = repo.changelog.parents(node)
445 445 if p1 == nullid:
@@ -92,7 +92,7 b' across branch'
92 92 should fail
93 93
94 94 $ hg backout 1
95 abort: cannot backout change on a different branch
95 abort: cannot backout change that is not an ancestor
96 96 [255]
97 97 $ echo c > c
98 98 $ hg ci -Am2
@@ -108,7 +108,7 b' should fail'
108 108 should fail
109 109
110 110 $ hg backout 1
111 abort: cannot backout change on a different branch
111 abort: cannot backout change that is not an ancestor
112 112 [255]
113 113 $ hg summary
114 114 parent: 2:db815d6d32e6 tip
General Comments 0
You need to be logged in to leave comments. Login now