( )โš™ D10798 util: add `nb_bytes` argument to `copyfile` to partially copy a file

This is an archive of the discontinued Mercurial Phabricator instance.

util: add `nb_bytes` argument to `copyfile` to partially copy a file
ClosedPublic

Authored by marmoute on May 30 2021, 1:30 PM.

Details

Summary

When set, this allow to copy only the first nb_bytes of a file. This will be
useful for censor/strip operation with revlogv2.

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

marmoute created this revision.May 30 2021, 1:30 PM
baymax updated this revision to Diff 28311.May 31 2021, 6:51 AM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

Alphare requested changes to this revision.May 31 2021, 10:49 AM
Alphare added a subscriber: Alphare.
Alphare added inline comments.
mercurial/util.py
1945

I think this message is confused!

This revision now requires changes to proceed.May 31 2021, 10:49 AM
baymax updated this revision to Diff 28326.May 31 2021, 4:21 PM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

baymax updated this revision to Diff 28408.Jun 1 2021, 11:17 PM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

Alphare accepted this revision as: Alphare.Jun 2 2021, 4:21 AM
baymax updated this revision to Diff 28423.Jun 2 2021, 7:43 AM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

baymax updated this revision to Diff 28457.Jun 4 2021, 11:05 AM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

baymax updated this revision to Diff 28479.Jun 7 2021, 5:17 AM

โœ… refresh by Heptapod after a successful CI run (๐Ÿ™ ๐Ÿ’š)

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.