This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: update to new deltachunk return value
ClosedPublic

Authored by ryanmce on Oct 1 2017, 7:54 AM.
Tags
None
Subscribers

Details

Reviewers
mbthomas
Group Reviewers
Restricted Project
Commits
rFBHGX96d881ce2cf4: remotefilelog: update to new deltachunk return value
Summary

In D746, we changed the return value of deltachunk. This diff makes me
a bit sad but it fixes remotefilelog to work with those changes.

Test Plan

tests

Diff Detail

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

Event Timeline

ryanmce created this revision.Oct 1 2017, 7:54 AM
ryanmce updated this revision to Diff 2275.Oct 1 2017, 9:02 AM

rerun atop a fixed up stack

ryanmce updated this revision to Diff 2279.Oct 1 2017, 9:07 AM

reverse order of commits

mbthomas accepted this revision.Oct 1 2017, 10:02 AM
mbthomas added a subscriber: mbthomas.
mbthomas added inline comments.
remotefilelog/shallowbundle.py
363

I don't really like indexed lookup of tuples (prefer unpacking), but this is probably ok as we only need a few things.

This revision is now accepted and ready to land.Oct 1 2017, 10:02 AM

This is also why this diff makes me sad. Looks like a readability loss to me.

remotefilelog/shallowbundle.py
363

This is why a style czar should declare that "records are the one true way". Alas, this is what we get for now.

This revision was automatically updated to reflect the committed changes.