##// END OF EJS Templates
rebase: always store rev in state, also when collapsing
Mads Kiilerich -
r23460:8dc45c90 default
parent child Browse files
Show More
@@ -429,9 +429,13 b' def rebase(ui, repo, **opts):'
429 editor = cmdutil.getcommiteditor(edit=editopt, editform=editform)
429 editor = cmdutil.getcommiteditor(edit=editopt, editform=editform)
430 newnode = concludenode(repo, rev, p1, external, commitmsg=commitmsg,
430 newnode = concludenode(repo, rev, p1, external, commitmsg=commitmsg,
431 extrafn=extrafn, editor=editor)
431 extrafn=extrafn, editor=editor)
432 if newnode is None:
433 newrev = target
434 else:
435 newrev = repo[newnode].rev()
432 for oldrev in state.iterkeys():
436 for oldrev in state.iterkeys():
433 if state[oldrev] > nullmerge:
437 if state[oldrev] > nullmerge:
434 state[oldrev] = newnode
438 state[oldrev] = newrev
435
439
436 if 'qtip' in repo.tags():
440 if 'qtip' in repo.tags():
437 updatemq(repo, state, skipped, **opts)
441 updatemq(repo, state, skipped, **opts)
General Comments 0
You need to be logged in to leave comments. Login now