1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 19:32:40 +01:00
phorge-phorge/src/applications/diffusion/controller
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
..
DiffusionBranchTableController.php [Redesign] PHUIPagerView 2015-06-02 14:34:04 -07:00
DiffusionBrowseController.php Make icon setting in Section Headers easier/consistent 2015-09-19 11:29:01 -07:00
DiffusionBrowseDirectoryController.php Merge branch 'master' into redesign-2015 2015-05-22 12:57:32 -07:00
DiffusionBrowseFileController.php Show file UI box as collapsed in Diffusion 2015-09-21 12:29:17 -07:00
DiffusionBrowseMainController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionBrowseSearchController.php [Redesign] PHUIPagerView 2015-06-02 14:34:04 -07:00
DiffusionChangeController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionCommitBranchesController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionCommitController.php Fix several error handling issues with Subversion commits in Diffusion 2015-10-05 15:57:41 -07:00
DiffusionCommitEditController.php Convert all tokenizers to take token/scalar inputs 2015-03-31 14:10:55 -07:00
DiffusionCommitTagsController.php Diffusion - clean up catching ConduitException 2015-02-17 14:01:17 -08:00
DiffusionController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionDiffController.php Provide getObjectOwnerPHID() on inline comment views 2015-03-27 11:23:10 -07:00
DiffusionExternalController.php Merge branch 'master' into redesign-2015 2015-05-22 12:57:32 -07:00
DiffusionHistoryController.php Add a box around the pager in Diffusion 2015-09-11 08:59:56 -07:00
DiffusionInlineCommentController.php Correctly clear draft markers when deleting an inline comment 2015-07-21 11:36:46 -07:00
DiffusionInlineCommentPreviewController.php Touch up PHP/JS interactions for inline comments 2015-03-27 17:08:31 -07:00
DiffusionLastModifiedController.php Improve consistency and Harbormaster integration of Diffusion 2015-10-06 07:38:15 -07:00
DiffusionLintController.php Merge branch 'master' into redesign-2015 2015-06-10 07:44:58 -07:00
DiffusionLintDetailsController.php [Redesign] PHUIPagerView 2015-06-02 14:34:04 -07:00
DiffusionMirrorDeleteController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionMirrorEditController.php Move PHUIErrorView to PHUIInfoView 2015-03-01 14:45:56 -08:00
DiffusionPathCompleteController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionPathTreeController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionPathValidateController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionPushEventViewController.php [Redesign] Add Table, Collapse support to ObjectBox 2015-05-19 23:14:22 -07:00
DiffusionPushLogController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionPushLogListController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionRefTableController.php [Redesign] Add Table, Collapse support to ObjectBox 2015-05-19 23:14:22 -07:00
DiffusionRepositoryController.php Make icon setting in Section Headers easier/consistent 2015-09-19 11:29:01 -07:00
DiffusionRepositoryCreateController.php Support Spaces in Diffusion 2015-06-24 10:56:46 -07:00
DiffusionRepositoryDefaultController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionRepositoryEditActionsController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditActivateController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionRepositoryEditBasicController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditBranchesController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditController.php Fix method visibility for PhabricatorController subclasses 2015-01-07 07:34:59 +11:00
DiffusionRepositoryEditDangerousController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionRepositoryEditDeleteController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditEncodingController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditHostingController.php Mark some strings for translation 2015-06-09 23:06:52 +10:00
DiffusionRepositoryEditMainController.php Make icon setting in Section Headers easier/consistent 2015-09-19 11:29:01 -07:00
DiffusionRepositoryEditStagingController.php Allow configuration of a "staging area" for each repository 2015-05-27 10:28:27 -07:00
DiffusionRepositoryEditStorageController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditSubversionController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositoryEditUpdateController.php Diffusion - return 404 errors for bad URIs 2015-01-09 13:29:08 -08:00
DiffusionRepositoryListController.php New diffusion repository rejection should not navigate away from diffusion. 2015-04-26 12:00:59 -07:00
DiffusionRepositoryNewController.php phtize all the things 2015-05-22 21:16:39 +10:00
DiffusionRepositorySymbolsController.php Search Symbols by Repository, not Project 2015-05-18 06:41:19 -07:00
DiffusionServeController.php Added an intercept to Mercurial's capabilities command to remove bundle2. 2015-10-10 07:14:48 -07:00
DiffusionSymbolController.php Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
DiffusionTagListController.php [Redesign] PHUIPagerView 2015-06-02 14:34:04 -07:00