This is an archive of the discontinued Mercurial Phabricator instance.

infinitepush: re-enable lfs support
ClosedPublic

Authored by stash on Jul 14 2017, 6:45 AM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Commits
rFBHGX501c3c98bbc9: infinitepush: re-enable lfs support
Summary

D17 was reverted because it broke creating bundle for non-general delta repos.
The reason is the following: D17 made infinitepush extension override
changegroup.supportedoutgoingversion() function and discard '01' version.
For non-general delta repositories it resulted in broken hg bundle ...
command.
abort: repository does not support bundle version 01

This diff fixes it by not overriding supportedoutgoingversion(). Instead
getscratchbranchpart() has its own logic of selecting changegroup version.

Test Plan

Run unit-test
Run hg bundle -r . --base .^ somefile in non-general delta repo,
make sure it works fine.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Branch
default
Lint
Lint OK
Unit
Unit Tests OK

Event Timeline

stash created this revision.Jul 14 2017, 6:45 AM
durham accepted this revision.Jul 14 2017, 3:39 PM
durham added a subscriber: durham.
durham added inline comments.
tests/library-infinitepush.sh
44 ↗(On Diff #131)

Does this mean the tests are testing the case where changegroup3 is disabled? Seems like we want that coverage since our normal devserver/hg server communication doesn't use changegroup3 right?

This revision is now accepted and ready to land.Jul 14 2017, 3:39 PM
stash updated this revision to Diff 202.Jul 17 2017, 8:24 AM

addressed comments

This revision was automatically updated to reflect the committed changes.