Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorRepositoryDiscoveryEngine

final class PhabricatorRepositoryDiscoveryEngine
Phabricator Technical Documentation (Repositories)

This class is not documented.

Tasks

Configuring Repository Engines

Internals

  • protected function log($pattern)
  • private function sortBranches($branches) — Sort branches so we process closeable branches first. This makes the whole import process a little cheaper, since we can close these commits the first time through rather than catching them in the refs step.

Discovering Repositories

No methods for this task.

Discovering Subversion Repositories

Discovering Git Repositories

Discovering Mercurial Repositories

Other Methods

discovery

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 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 setRepairMode($repair_mode)

This method is not documented.
Parameters
$repair_mode
Return
wild

public function getRepairMode()

This method is not documented.
Return
wild

public function discoverCommits()

This method is not documented.
Return
wild

private function discoverGitCommits()

This method is not documented.
Return
wild

private function discoverSubversionCommits()

This method is not documented.
Return
wild

private function verifySubversionRoot($repository)

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

private function discoverMercurialCommits()

This method is not documented.
Return
wild

private function discoverStreamAncestry($stream, $commit, $close_immediately)

This method is not documented.
Parameters
PhabricatorRepositoryGraphStream$stream
$commit
$close_immediately
Return
wild

private function reduceGraph($edges)

This method is not documented.
Parameters
array$edges
Return
wild

private function isKnownCommit($identifier)

This method is not documented.
Parameters
$identifier
Return
wild

private function fillCommitCache($identifiers)

This method is not documented.
Parameters
array$identifiers
Return
wild

private function sortBranches($branches)

Sort branches so we process closeable branches first. This makes the whole import process a little cheaper, since we can close these commits the first time through rather than catching them in the refs step.

Parameters
list<DiffusionRepositoryRef>$branchesList of branch heads.
Return
list<DiffusionRepositoryRef>Sorted list of branch heads.

private function recordCommit($repository, $commit_identifier, $epoch, $close_immediately, $parents)

This method is not documented.
Parameters
PhabricatorRepository$repository
$commit_identifier
$epoch
$close_immediately
array$parents
Return
wild

private function didDiscoverRefs($refs)

This method is not documented.
Parameters
array$refs
Return
wild

private function insertTask($repository, $commit, $data)

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