This is an archive of the discontinued Mercurial Phabricator instance.

rebase: remove an unnecessary adjustdest in clearrebased
ClosedPublic

Authored by quark on Aug 29 2017, 9:40 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

quark created this revision.Aug 29 2017, 9:40 PM

For the record, my testing suggests that the call to adjustdest has been unnecessary ever since the function was introduced in commit 52f82e7d6a7e

This revision was automatically updated to reflect the committed changes.
quark added a comment.Aug 30 2017, 3:38 PM

You're right. I didn't realize the old code has state[rev] set. I was avoiding depending on the old defineparents but that turned out to not matter in this case.