1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/repository
epriestley 575c01373e Extract repository command construction from Repositories
Summary:
Ref T4292. Ref T10366. Depends on D15751. Today, generating repository commands is purely a function of the repository, so they use protocols and credentials based on the repository configuration.

For example, a repository with an SSH "remote URI" always generate SSH "remote commands".

This needs to change in the future:

  - After T10366, repositories won't necessarily just have one type of remote URI. They can only have one at a time still, but the repository itself won't change based on which one is currently active.
  - For T4292, I need to generate intracluster commands, regardless of repository configuration. These will have different protocols and credentials.

Prepare for these cases by separating out command construction, so they'll be able to generate commands in a more flexible way.

Test Plan:
  - Added unit tests.
  - Browsed diffusion.
  - Ran `bin/phd debug pull` to pull a bunch of repos.
  - Ran daemons.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T4292, T10366

Differential Revision: https://secure.phabricator.com/D15752
2016-04-19 04:51:48 -07:00
..
conduit Move repository URIs to a dedicated index 2016-01-13 09:34:31 -08:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
constants Support more transactions types in RepositoryEditEngine 2016-04-17 16:27:02 -07:00
customfield Move various other callsites away from callsigns 2016-01-04 06:54:42 -08:00
daemon Rough cut of repository cluster status panel 2016-04-12 05:38:10 -07:00
data Fix pht method calls 2015-02-10 18:57:45 +11:00
editor Support more transactions types in RepositoryEditEngine 2016-04-17 16:27:02 -07:00
engine Remove dependence on callsigns from bin/commit-hook 2016-02-17 16:50:36 -08:00
graphcache Remove duplicated duplicated words 2015-06-27 08:43:44 -07:00
mail Build separate mail for each recipient, honoring recipient access levels 2015-06-03 18:59:31 -07:00
management Fix a typo in bin/repository help update 2016-04-07 05:39:37 -07:00
phid Add a basic pull event log for debugging repository cloning 2016-01-28 08:18:34 -08:00
query Implement a Git LFS link table and basic batch API 2016-03-17 17:15:20 -07:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Reduce the total number of calls to getCallsign() 2016-01-02 04:23:06 -08:00
storage Extract repository command construction from Repositories 2016-04-19 04:51:48 -07:00
worker Use Conduit in PhabricatorRepositoryGitCommitChangeParserWorker 2016-04-14 04:53:03 -07:00