Mercurial > hg
changeset 34007:06b0cc2588de
rebase: remove an unnecessary adjustdest in clearrebased
`rev` being "skipped" could currently be caused by moving `rev` does not
create a new commit. In this case, `state[rev]` is already changed to `p1`,
and is a sane destination for bookmark or working parent movement. Therefore
an additional destination adjustment is unnecessary.
Differential Revision: https://phab.mercurial-scm.org/D565
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 29 Aug 2017 17:49:13 -0700 |
parents | 32528419db64 |
children | 9422107a6b64 |
files | hgext/rebase.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/rebase.py Mon Aug 21 20:22:07 2017 -0700 +++ b/hgext/rebase.py Tue Aug 29 17:49:13 2017 -0700 @@ -1497,7 +1497,7 @@ # Move bookmark of skipped nodes to destination. This cannot be handled # by scmutil.cleanupnodes since it will treat rev as removed (no successor) # and move bookmark backwards. - bmchanges = [(name, tonode(max(adjustdest(repo, rev, destmap, state)))) + bmchanges = [(name, tonode(state[rev])) for rev in skipped for name in repo.nodebookmarks(tonode(rev))] if bmchanges: