##// END OF EJS Templates
rebase: improve error message for more than one external parent
Mads Kiilerich -
r19956:78ab0f85 stable
parent child Browse files
Show More
@@ -406,8 +406,10 b' def externalparent(repo, state, targetan'
406 return nullrev
406 return nullrev
407 if len(parents) == 1:
407 if len(parents) == 1:
408 return parents.pop()
408 return parents.pop()
409 raise util.Abort(_('unable to collapse, there is more '
409 raise util.Abort(_('unable to collapse on top of %s, there is more '
410 'than one external parent'))
410 'than one external parent: %s') %
411 (max(targetancestors),
412 ', '.join(str(p) for p in sorted(parents))))
411
413
412 def concludenode(repo, rev, p1, p2, commitmsg=None, editor=None, extrafn=None):
414 def concludenode(repo, rev, p1, p2, commitmsg=None, editor=None, extrafn=None):
413 'Commit the changes and store useful information in extra'
415 'Commit the changes and store useful information in extra'
@@ -226,7 +226,7 b' Rebase and collapse - more than one exte'
226 $ cd b1
226 $ cd b1
227
227
228 $ hg rebase -s 2 --collapse
228 $ hg rebase -s 2 --collapse
229 abort: unable to collapse, there is more than one external parent
229 abort: unable to collapse on top of 7, there is more than one external parent: 1, 5
230 [255]
230 [255]
231
231
232 Rebase and collapse - E onto H:
232 Rebase and collapse - E onto H:
General Comments 0
You need to be logged in to leave comments. Login now