Differential D18693 Diff 44881 src/applications/repository/daemon/PhabricatorMercurialGraphStream.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/daemon/PhabricatorMercurialGraphStream.php
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | final class PhabricatorMercurialGraphStream | ||||
/** | /** | ||||
* Parse a {parents} template, returning the local commit numbers. | * Parse a {parents} template, returning the local commit numbers. | ||||
*/ | */ | ||||
private function parseParents($parents, $target_rev) { | private function parseParents($parents, $target_rev) { | ||||
// The hg '{parents}' token is empty if there is one "natural" parent | // The hg '{parents}' token is empty if there is one "natural" parent | ||||
// (predecessor local commit ID). Othwerwise, it may have one or two | // (predecessor local commit ID). Otherwise, it may have one or two | ||||
// parents. The string looks like this: | // parents. The string looks like this: | ||||
// | // | ||||
// 151:1f6c61a60586 154:1d5f799ebe1e | // 151:1f6c61a60586 154:1d5f799ebe1e | ||||
$parents = trim($parents); | $parents = trim($parents); | ||||
if (strlen($parents)) { | if (strlen($parents)) { | ||||
$local = array(); | $local = array(); | ||||
Show All 37 Lines |