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.
strip: move attributes shortcut assigned earlier
This series will add support for "soft" stripping using the archived phase in
addition to the usual heavy weight revlog stripping. First, we need to
refactor the strip function to extract logic common to the "soft-strip" case.
We are about to extract bits of the strip function into separate functions.
Those blocks of code contain variables for frequently accessed attributes. We
move those variables outside of the soon to be moved blocks.
log: fix line wrap on diffstat with -G/--graph (
issue5800)
Differential Revision: https://phab.mercurial-scm.org/D5485
vfs: raise NotImplementedError in abstractvfs._auditvfs
This make sure that auditing is implemented.
vfs: handle _auditpath in proxyvfs
Just forward the call to the underlying vfs.
vfs: fix proxyvfs inheritance
The proxyvfs class is designed to overwrite some of the vfs logic. Yet, it did
not use normal class inheritance. This is becoming an issue as `abstractvfs`
method could take precedence over their `proxyvfs` version.
We fix the inheritance chain to be as expected.