Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorRepositoryMirrorEngine

final class PhabricatorRepositoryMirrorEngine
Phabricator Technical Documentation (Repositories)

Pushes a repository to its mirrors.

Tasks

Configuring Repository Engines

Internals

  • protected function log($pattern)

Other Methods

Methods

public function setRepository($repository)
Inherited

This method is not documented.
Parameters
PhabricatorRepository$repository
Return
wild

protected function getRepository()
Inherited

This method is not documented.
Return
wild

public function setVerbose($verbose)
Inherited

This method is not documented.
Parameters
$verbose
Return
wild

public function getVerbose()
Inherited

This method is not documented.
Return
wild

public function getViewer()
Inherited

This method is not documented.
Return
wild

protected function newRepositoryLock($repository, $lock_key, $lock_device_only)
Inherited

This method is not documented.
Parameters
PhabricatorRepository$repository
$lock_key
$lock_device_only
Return
wild

protected function verifyGitOrigin($repository)
Inherited

PhabricatorRepositoryEngine

Verify that the "origin" remote exists, and points at the correct URI.

This catches or corrects some types of misconfiguration, and also repairs an issue where Git 1.7.1 does not create an "origin" for --bare clones. See T4041.

Parameters
PhabricatorRepository$repositoryRepository to verify.
Return
void

protected function log($pattern)
Inherited

This method is not documented.
Parameters
$pattern
Return
wild

public function pushToMirrors()

This method is not documented.
Return
wild

private function pushRepositoryToMirror($repository, $mirror_uri)

This method is not documented.
Parameters
PhabricatorRepository$repository
PhabricatorRepositoryURI$mirror_uri
Return
wild

private function pushToGitRepository($repository, $mirror_uri)

This method is not documented.
Parameters
PhabricatorRepository$repository
PhabricatorRepositoryURI$mirror_uri
Return
wild

private function pushToHgRepository($repository, $mirror_uri)

This method is not documented.
Parameters
PhabricatorRepository$repository
PhabricatorRepositoryURI$mirror_uri
Return
wild