Page MenuHomePhorge
Diviner Tech Docs PhabricatorMercurialGraphStream

final class PhabricatorMercurialGraphStream
Phorge Technical Documentation (Repositories)

Streaming interface on top of "hg log" that gives us performant access to the Mercurial commit graph with one nonblocking invocation of "hg". See PhabricatorRepositoryPullLocalDaemon.

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.

public function getParents($commit)

This method is not documented.
Parameters
$commit
Return
wild

public function getCommitDate($commit)

This method is not documented.
Parameters
$commit
Return
wild

public function __construct($repository, $start_commit)

This method is not documented.
Parameters
PhabricatorRepository$repository
$start_commit
Return
this//Implicit.//

private function parseUntil($until_type, $until_name)

Parse until we have consumed some object. There are two types of parses: parse until we find a commit hash ($until_type = "node"), or parse until we find a local commit number ($until_type = "rev"). We use the former when looking up commits, and the latter when resolving parents.

Parameters
$until_type
$until_name
Return
wild

private function parseParents($parents, $target_rev)

Parse a {parents} template, returning the local commit numbers.

Parameters
$parents
$target_rev
Return
wild

private function isParsed($type, $name)

Returns true if the object specified by $type ('rev' or 'node') and $name (rev or node name) has been consumed from the hg process.

Parameters
$type
$name
Return
wild