1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 01:12:41 +01:00
phorge-phorge/src/applications/diffusion/ssh
Christopher Speck 32d4ae8cb2 Added an intercept to Mercurial's capabilities command to remove bundle2.
Summary:
If Mercurial 3.4+ is used to host repositories in Phabricator, any clients using 3.5+ will receive an exception after the bundle is pushed up. Clients will also fail to update phases for changesets pushed up.

Before directly responding to mercurial clients with all capabilities, this change filters out the 'bundle2' capability so the client negotiates using a legacy bundle wire format instead.

Test Plan:
Server: Mercurial 3.5
Client: Mercurial 3.4

Test with both HTTP and SSH protocols:
1. Create a local commit on client
2. Push commit to server
3. Verify the client emits something like:
```
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
```

Closes T9450

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T9450

Differential Revision: https://secure.phabricator.com/D14241
2015-10-10 07:14:48 -07:00
..
__tests__ phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionGitReceivePackSSHWorkflow.php Proxy VCS SSH requests 2015-01-28 14:41:24 -08:00
DiffusionGitSSHWorkflow.php Prepare SSH connections for proxying 2015-01-28 10:18:07 -08:00
DiffusionGitUploadPackSSHWorkflow.php Proxy VCS SSH requests 2015-01-28 14:41:24 -08:00
DiffusionMercurialServeSSHWorkflow.php Added an intercept to Mercurial's capabilities command to remove bundle2. 2015-10-10 07:14:48 -07:00
DiffusionMercurialSSHWorkflow.php Rename DiffusionSSHWorkflow subclasses for consistency 2015-01-05 06:33:19 +11:00
DiffusionMercurialWireClientSSHProtocolChannel.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionSSHWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionSubversionServeSSHWorkflow.php Extend from Phobject 2015-06-15 18:02:27 +10:00
DiffusionSubversionSSHWorkflow.php Rename DiffusionSSHWorkflow subclasses for consistency 2015-01-05 06:33:19 +11:00