This is an archive of the discontinued Mercurial Phabricator instance.

treemanifest: remove sendtrees
ClosedPublic

Authored by durham on Oct 30 2017, 11:29 AM.
Tags
None
Subscribers

Details

Reviewers
phillco
singhsrb
Group Reviewers
Restricted Project
Commits
rFBHGX46bc44d9dbd9: treemanifest: remove sendtrees
Summary

Previously we were relying on config values to determine when to send or not send tree and flat manifests. This resulted in complicated permutations to test. Let's remove these config values and always send trees if we have them. A future patch will do the same for flat manifests.

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

durham created this revision.Oct 30 2017, 11:29 AM
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 30 2017, 11:29 AM
durham edited the summary of this revision. (Show Details)Oct 30 2017, 11:31 AM
phillco accepted this revision.Nov 1 2017, 12:28 PM
This revision is now accepted and ready to land.Nov 1 2017, 12:28 PM
singhsrb accepted this revision.EditedNov 1 2017, 2:25 PM
singhsrb added a subscriber: singhsrb.

Looks good but I just had a few general comments and questions.

tests/test-treemanifest-server.t
85

If we are sending trees, is this relevant? Or am i missing something?

147

Nice!

treemanifest/__init__.py
1107

Hmm, same logic as in pushrebase but nice to see a method for it!

durham added inline comments.Nov 1 2017, 7:02 PM
tests/test-treemanifest-server.t
85

This is the config that tells the server to reject any pushes that are flat manifests. This will be the last step in forcing our transition to tree only on the server.

treemanifest/__init__.py
1107

Yea, sharing code between extensions is a bit awkward right now. I definitely want to move all this common storage/utility stuff together at some point.

This revision was automatically updated to reflect the committed changes.