This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: disable streaming clones with bundle2
ClosedPublic

Authored by durin42 on Sep 26 2018, 4:37 PM.
Tags
None
Subscribers

Details

Reviewers
None
Group Reviewers
Restricted Project
Commits
rFBHGXcd64297d3d34: remotefilelog: disable streaming clones with bundle2
Summary

These manage to subvert the shallow cloning functionality of
remotefilelog. We'll do more work in the future to fix this, but for
now let's just take the easy out.

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

durin42 created this revision.Sep 26 2018, 4:37 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 26 2018, 4:37 PM
indygreg added inline comments.
remotefilelog/__init__.py
216–219

Is this block needed? Or will it fall back to version 1 stream clones if it is omitted?

durin42 added inline comments.Sep 26 2018, 4:52 PM
remotefilelog/__init__.py
216–219

The goal is to force the code into the v1 streamclone path. I was trying to mutate the pullop as little as possible while accomplishing that goal.

This revision was automatically updated to reflect the committed changes.