This is an archive of the discontinued Mercurial Phabricator instance.

copies: write empty entries in changeset when also writing to filelog
ClosedPublic

Authored by martinvonz on Apr 23 2019, 4:32 PM.

Details

Summary

When writing to both changeset and filelog (during transition), we
don't want the reader to waste time by falling back to reading from
the filelog when there is no copy metadata. Let's write out empty copy
metadata instead (the read path is already prepared for this
case). Thanks to Greg for pointing this out.

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

martinvonz created this revision.Apr 23 2019, 4:32 PM
indygreg accepted this revision.Apr 24 2019, 10:21 PM
This revision is now accepted and ready to land.Apr 24 2019, 10:21 PM
martinvonz updated this revision to Diff 15018.May 5 2019, 1:23 AM
martinvonz updated this revision to Diff 15083.May 14 2019, 8:11 PM
pulkit accepted this revision.May 15 2019, 1:59 PM
This revision was automatically updated to reflect the committed changes.