This is an archive of the discontinued Mercurial Phabricator instance.

tests: additional test coverage of archive web command
ClosedPublic

Authored by indygreg on Mar 11 2018, 12:23 AM.

Details

Summary

This command is special in a few ways. First, it is the only command
using the write() function from WSGI's start_response() function.
Second, it is setting a custom content-disposition header.

We change the test so it prints out full details of the HTTP
response. We also save the response body to a file so we can
verify its size and hash. The hash check will help ensure that
archive generation is deterministic.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Mar 11 2018, 12:23 AM
durin42 accepted this revision.Mar 12 2018, 5:10 PM
This revision is now accepted and ready to land.Mar 12 2018, 5:10 PM
This revision was automatically updated to reflect the committed changes.