mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 03:32:42 +01:00
904dbf0db6
Summary: Depends on D20381. Ref T8093. This makes minor improvements to the protocol proxy to handle cases where we add, remove, or replace refs and may need to move the "capabilities" section. Rather than invoking a callback on every ref: parse the whole ref list into a data structure, mutate it if necessary (in a future diff), then dump it back into wire format. This allows us to shift the capabilities data (which needs to be coupled with the first ref) around if we modify the first ref, and reorder the reflist alphabetically like git does. When the server has no refs, Git sends no capabilities data. This is easy to emulate, just surprising. Test Plan: Tested the cases not covered by D20381: - Fetching where the fetch actually fetches data. - `ls-remote` when we hide the first ref (capabilities data properly moves to the first visible ref). - `ls-remote` when the remote is empty (we just drop the capabilities frame completely). Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T8093 Differential Revision: https://secure.phabricator.com/D20436 |
||
---|---|---|
.. | ||
application | ||
capability | ||
conduit | ||
config | ||
controller | ||
data | ||
document | ||
doorkeeper | ||
edge | ||
editfield | ||
editor | ||
engine | ||
engineextension | ||
exception | ||
garbagecollector | ||
gitlfs | ||
harbormaster | ||
herald | ||
management | ||
panel | ||
protocol | ||
query | ||
relationships | ||
remarkup | ||
request | ||
response | ||
searchfield | ||
ssh | ||
symbol | ||
typeahead | ||
view | ||
xaction | ||
DiffusionCommitAuditStatus.php | ||
DiffusionLintSaveRunner.php |