Page MenuHomenazrin ltd
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 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