rust: use 'impl Trait' in method argument of AncestorsIterator
I just didn't know it's stabilized. Let's switch to new convenient syntax.
Differential Revision: https://phab.mercurial-scm.org/D5451
rust: use .rev() for reverse range
Differential Revision: https://phab.mercurial-scm.org/D5450
histedit: add warning message on editing tagged commits (
issue4017)
Differential Revision: https://phab.mercurial-scm.org/D5489
strip: extract bookmark movement into a separate function
We will need it for the soft-strip case.
strip: compute bookmark target only if we have bookmark to move
This is a small change that seems to make sense.
strip: extract code to create strip backup
We will reuse this for soft stripping.
strip: clarify comment around bundle create
We may create two bundles, one for the changeset actually stripped, and one
for the changeset affected by the strip we want to keep. (Changesets with a
higher rev number than the striped ones).
For soft stripping, we still need to the first one (used for "restoring" the
changesets), but not the second one.
We start with clarifying which bits of the code is used for what.