Page MenuHomePhorge
Diviner Arcanist Tech Docs ArcanistGitLandEngine

final class ArcanistGitLandEngine
Arcanist Technical Documentation ()

This class is not documented.

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

final public function setViewer($viewer)
Inherited

This method is not documented.
Parameters
$viewer
Return
wild

final public function getViewer()
Inherited

This method is not documented.
Return
wild

final public function setWorkflow($workflow)
Inherited

This method is not documented.
Parameters
ArcanistWorkflow$workflow
Return
wild

final public function getWorkflow()
Inherited

This method is not documented.
Return
wild

final public function setRepositoryAPI($repository_api)
Inherited

This method is not documented.
Parameters
ArcanistRepositoryAPI$repository_api
Return
wild

final public function getRepositoryAPI()
Inherited

This method is not documented.
Return
wild

final public function setLogEngine($log_engine)
Inherited

This method is not documented.
Parameters
ArcanistLogEngine$log_engine
Return
wild

final public function getLogEngine()
Inherited

This method is not documented.
Return
wild

final public function setOntoRemote($onto_remote)
Inherited

This method is not documented.
Parameters
$onto_remote
Return
wild

final public function getOntoRemote()
Inherited

This method is not documented.
Return
wild

final public function setOntoRefs($onto_refs)
Inherited

This method is not documented.
Parameters
$onto_refs
Return
wild

final public function getOntoRefs()
Inherited

This method is not documented.
Return
wild

final public function setIntoRemote($into_remote)
Inherited

This method is not documented.
Parameters
$into_remote
Return
wild

final public function getIntoRemote()
Inherited

This method is not documented.
Return
wild

final public function setIntoRef($into_ref)
Inherited

This method is not documented.
Parameters
$into_ref
Return
wild

final public function getIntoRef()
Inherited

This method is not documented.
Return
wild

final public function setIntoEmpty($into_empty)
Inherited

This method is not documented.
Parameters
$into_empty
Return
wild

final public function getIntoEmpty()
Inherited

This method is not documented.
Return
wild

final public function setPickArgument($pick_argument)
Inherited

This method is not documented.
Parameters
$pick_argument
Return
wild

final public function getPickArgument()
Inherited

This method is not documented.
Return
wild

final public function setIntoLocal($into_local)
Inherited

This method is not documented.
Parameters
$into_local
Return
wild

final public function getIntoLocal()
Inherited

This method is not documented.
Return
wild

final public function setShouldHold($should_hold)
Inherited

This method is not documented.
Parameters
$should_hold
Return
wild

final public function getShouldHold()
Inherited

This method is not documented.
Return
wild

final public function setShouldKeep($should_keep)
Inherited

This method is not documented.
Parameters
$should_keep
Return
wild

final public function getShouldKeep()
Inherited

This method is not documented.
Return
wild

final public function setStrategyArgument($strategy_argument)
Inherited

This method is not documented.
Parameters
$strategy_argument
Return
wild

final public function getStrategyArgument()
Inherited

This method is not documented.
Return
wild

final public function setStrategy($strategy)
Inherited

This method is not documented.
Parameters
$strategy
Return
wild

final public function getStrategy()
Inherited

This method is not documented.
Return
wild

final public function setRevisionSymbol($revision_symbol)
Inherited

This method is not documented.
Parameters
$revision_symbol
Return
wild

final public function getRevisionSymbol()
Inherited

This method is not documented.
Return
wild

final public function setRevisionSymbolRef($revision_ref)
Inherited

This method is not documented.
Parameters
ArcanistRevisionSymbolRef$revision_ref
Return
wild

final public function getRevisionSymbolRef()
Inherited

This method is not documented.
Return
wild

final public function setShouldPreview($should_preview)
Inherited

This method is not documented.
Parameters
$should_preview
Return
wild

final public function getShouldPreview()
Inherited

This method is not documented.
Return
wild

final public function setSourceRefs($source_refs)
Inherited

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

final public function getSourceRefs()
Inherited

This method is not documented.
Return
wild

final public function setOntoRemoteArgument($remote_argument)
Inherited

This method is not documented.
Parameters
$remote_argument
Return
wild

final public function getOntoRemoteArgument()
Inherited

This method is not documented.
Return
wild

final public function setOntoArguments($onto_arguments)
Inherited

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

final public function getOntoArguments()
Inherited

This method is not documented.
Return
wild

final public function setIsIncremental($is_incremental)
Inherited

This method is not documented.
Parameters
$is_incremental
Return
wild

final public function getIsIncremental()
Inherited

This method is not documented.
Return
wild

final public function setIntoEmptyArgument($into_empty_argument)
Inherited

This method is not documented.
Parameters
$into_empty_argument
Return
wild

final public function getIntoEmptyArgument()
Inherited

This method is not documented.
Return
wild

final public function setIntoLocalArgument($into_local_argument)
Inherited

This method is not documented.
Parameters
$into_local_argument
Return
wild

final public function getIntoLocalArgument()
Inherited

This method is not documented.
Return
wild

final public function setIntoRemoteArgument($into_remote_argument)
Inherited

This method is not documented.
Parameters
$into_remote_argument
Return
wild

final public function getIntoRemoteArgument()
Inherited

This method is not documented.
Return
wild

final public function setIntoArgument($into_argument)
Inherited

This method is not documented.
Parameters
$into_argument
Return
wild

final public function getIntoArgument()
Inherited

This method is not documented.
Return
wild

private function setLocalState($local_state)
Inherited

This method is not documented.
Parameters
ArcanistRepositoryLocalState$local_state
Return
wild

final protected function getLocalState()
Inherited

This method is not documented.
Return
wild

private function setHasUnpushedChanges($unpushed)
Inherited

This method is not documented.
Parameters
$unpushed
Return
wild

final protected function getHasUnpushedChanges()
Inherited

This method is not documented.
Return
wild

final protected function getOntoConfigurationKey()
Inherited

This method is not documented.
Return
wild

final protected function getOntoFromConfiguration()
Inherited

This method is not documented.
Return
wild

final protected function getOntoRemoteConfigurationKey()
Inherited

This method is not documented.
Return
wild

final protected function getOntoRemoteFromConfiguration()
Inherited

This method is not documented.
Return
wild

final protected function getStrategyConfigurationKey()
Inherited

This method is not documented.
Return
wild

final protected function getStrategyFromConfiguration()
Inherited

This method is not documented.
Return
wild

final protected function confirmRevisions($sets)
Inherited

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

private function confirmBuilds($revision_refs)
Inherited

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

final protected function confirmImplicitCommits($sets, $symbols)
Inherited

This method is not documented.
Parameters
array$sets
array$symbols
Return
wild

final protected function getDisplaySymbols($symbols)
Inherited

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

final protected function printCommitSet($set)
Inherited

This method is not documented.
Parameters
ArcanistLandCommitSet$set
Return
wild

final protected function loadRevisionRefs($commit_map)
Inherited

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

final protected function confirmCommits($into_commit, $symbols, $commit_map)
Inherited

This method is not documented.
Parameters
$into_commit
array$symbols
array$commit_map
Return
wild

public function execute()
Inherited

This method is not documented.
Return
wild

protected function validateArguments()
Inherited

This method is not documented.
Return
wild

protected function getDefaultSymbols()

This method is not documented.
Return
wild

protected function resolveSymbols($symbols)

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

protected function selectOntoRemote($symbols)

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

protected function selectOntoRefs($symbols)

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

protected function confirmOntoRefs($onto_refs)

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

protected function selectIntoRemote()

This method is not documented.
Return
wild

protected function selectIntoRef()

This method is not documented.
Return
wild

protected function selectIntoCommit()

This method is not documented.
Return
wild

protected function selectCommits($into_commit, $symbols)

This method is not documented.
Parameters
$into_commit
array$symbols
Return
wild

protected function executeMerge($set, $into_commit)

This method is not documented.
Parameters
ArcanistLandCommitSet$set
$into_commit
Return
wild

protected function pushChange($into_commit)

This method is not documented.
Parameters
$into_commit
Return
wild

protected function cascadeState($set, $into_commit)

ArcanistLandEngine

Update all local refs that depend on refs selected-and-modified during the land. E.g. with branches named change1 -> change2 -> change3 and using arc land change2, in the general case the local change3 should be rebased onto the landed version of change2 so that it no longer has out-of-date ancestors.

When multiple revisions are landed at once this will be called in a loop for each set, in order of max to min, where max is the latest descendant and min is the earliest ancestor. This is done so that non-landing commits that are descendants of the latest revision will only be rebased once.

ArcanistGitLandEngine
This method is not documented.
Parameters
ArcanistLandCommitSet$setThe current commit set to cascade.
$into_commit
Return
wild

protected function isSquashStrategy()
Inherited

This method is not documented.
Return
wild

protected function pruneBranches($sets)

ArcanistLandEngine

Prunes the given sets of commits. This should be called after the sets have been merged.

ArcanistGitLandEngine
This method is not documented.
Parameters
array$setsThe list of ArcanistLandCommitSet to prune, in order of min to max commit set, where min is the earliest ancestor and max is the latest descendant.
Return
wild

protected function reconcileLocalState($into_commit, $state)

ArcanistLandEngine

Restore the local repository to an expected state after landing. This should only be called after all changes have been merged, pruned, and pushed.

ArcanistGitLandEngine
This method is not documented.
Parameters
string$into_commitThe commit hash that was landed into.
ArcanistRepositoryLocalState$stateThe local state that was captured at the beginning of the land process. This may include stashed changes.
Return
wild

protected function didHoldChanges($into_commit)

ArcanistLandEngine

Display information to the user about how to proceed since the land process was not fully completed. The merged branch has not been pushed.

ArcanistGitLandEngine
This method is not documented.
Parameters
string$into_commitThe commit hash that was landed into.
Return
wild

private function selectMergeStrategy()
Inherited

This method is not documented.
Return
wild

private function filterCommitSets($sets)
Inherited

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

final protected function newPassthruCommand($pattern)
Inherited

This method is not documented.
Parameters
$pattern
Return
wild

final protected function newPassthru($pattern)
Inherited

This method is not documented.
Parameters
$pattern
Return
wild

final protected function getOntoRemoteRef()
Inherited

This method is not documented.
Return
wild

private function setIsGitPerforce($is_git_perforce)

This method is not documented.
Parameters
$is_git_perforce
Return
wild

private function getIsGitPerforce()

This method is not documented.
Return
wild

private function getBranchesForCommits($hashes, $is_contains)

This method is not documented.
Parameters
array$hashes
$is_contains
Return
wild

private function fetchTarget($target)

This method is not documented.
Parameters
ArcanistLandTarget$target
Return
wild

private function isAncestorOf($branch, $commit)

This method is not documented.
Parameters
$branch
$commit
Return
wild

private function getAuthorAndDate($commit)

This method is not documented.
Parameters
$commit
Return
wild

private function newOntoRemote($onto_symbols)

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

private function getLandTargetLocalCommit($target)

This method is not documented.
Parameters
ArcanistLandTarget$target
Return
wild

private function getLandTargetLocalExists($target)

This method is not documented.
Parameters
ArcanistLandTarget$target
Return
wild

private function resolveLandTargetLocalCommit($target)

This method is not documented.
Parameters
ArcanistLandTarget$target
Return
wild

private function fetchLandTarget($target, $ignore_failure)

This method is not documented.
Parameters
ArcanistLandTarget$target
$ignore_failure
Return
wild

private function newOntoRefArguments($into_commit)

This method is not documented.
Parameters
$into_commit
Return
wild
This method is not documented.
Return
wild

private function applyRebaseOperation($src_min, $src_max, $dst, $force_resolve)

This method is not documented.
Parameters
$src_min
$src_max
$dst
$force_resolve
Return
wild

private function applyMergeOperation($src, $dst, $is_squash, $is_empty)

This method is not documented.
Parameters
$src
$dst
$is_squash
$is_empty
Return
wild

private function applyCommitOperation($message, $author, $date, $allow_empty)

This method is not documented.
Parameters
$message
$author
$date
$allow_empty
Return
wild