This is an archive of the discontinued Mercurial Phabricator instance.

largefiles: redo heads interception
ClosedPublic

Authored by joerg.sonnenberger on Dec 27 2020, 9:40 PM.

Details

Summary

The largefiles extension replaces the "heads" wire command and tries to
redirect all uses towards the custom "lheads" wire command. As seen in
issue6384, this doesn't currently work for ssh. Instead of hooking into
the _callstream interface, properly register the command for the peer
instance and monkeypatch the executor to do the redirection. This works
transparently for both all kinds of peers and both for the batch and
non-batch case.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute accepted this revision.Jan 7 2021, 8:23 AM
marmoute added a subscriber: marmoute.

This looks simpler and cleaner.

pulkit accepted this revision.Jan 9 2021, 5:07 AM
This revision is now accepted and ready to land.Jan 9 2021, 5:07 AM
This revision was automatically updated to reflect the committed changes.