This is an archive of the discontinued Mercurial Phabricator instance.

treemanifest: update test for pushing a treeonly commit to a server
ClosedPublic

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

Details

Summary

The old version of this test relied on the sendflat config being set to false so
it would only send the trees. Since that config is gone, the test then started
sending flat manifests, so it wasn't actually testing what it should've been.

This patch fixes that by making it push a tree only commit and ensuring the
commit hook executes correctly. The test changed a bit, because the hash changed
after the push, because it was a tree only commit on the client (and therefore
used the tree hash) but a hybrid commit on the server (and therefore used the
flat hash).

The patch required some changes to fastmanifest because it wasn't properly looking aside into the tree store for parent information in some cases.

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
phillco accepted this revision.Nov 1 2017, 3:37 PM
phillco added a subscriber: phillco.
phillco added inline comments.
fastmanifest/implementation.py
826–832

This change doesn't seem to be reflected in the commit message.

This revision is now accepted and ready to land.Nov 1 2017, 3:37 PM
durham edited the summary of this revision. (Show Details)Nov 1 2017, 7:03 PM
durham added inline comments.
fastmanifest/implementation.py
826–832

Fixed

This revision was automatically updated to reflect the committed changes.