Implement binary files support for Mercurial.
Review Request #13610 — Created March 4, 2024 and submitted
This change implements the get_file_content and get_file_size methods
for the Mercurial client backend.Additionally, this changes the log methods to always use
{node}
instead of{node|short}
. We had a mix (individual commits were using
the full node SHA, while the cumulative diff was using the short form),
which was causing issues with file uploads--we'd upload a file for the
commit version with the full SHA revision, and then not find it because
the cumulative diff was using the short SHA.
- Ran unit tests.
- Uploaded a variety of revisions including binary files. Saw that
everything worked correctly.
Summary | ID |
---|---|
fbae529dfe7465670ffc226b658d0092d8828468 |
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+126 -8) |
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+296 -50) |
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.