Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/commitfinder/ReleephCommitFinder.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function fromPartial($partial_string) { | ||||
} | } | ||||
// When requesting a single commit, if it has an associated review we | // When requesting a single commit, if it has an associated review we | ||||
// imply the review was requested instead. This is always correct for now | // imply the review was requested instead. This is always correct for now | ||||
// and consistent with the older behavior, although it might not be the | // and consistent with the older behavior, although it might not be the | ||||
// right rule in the future. | // right rule in the future. | ||||
$phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | $phids = PhabricatorEdgeQuery::loadDestinationPHIDs( | ||||
$phabricator_repository_commit->getPHID(), | $phabricator_repository_commit->getPHID(), | ||||
PhabricatorEdgeConfig::TYPE_COMMIT_HAS_DREV); | DiffusionCommitHasRevisionEdgeType::EDGECONST); | ||||
if ($phids) { | if ($phids) { | ||||
$this->objectPHID = head($phids); | $this->objectPHID = head($phids); | ||||
} | } | ||||
return $phabricator_repository_commit; | return $phabricator_repository_commit; | ||||
} | } | ||||
} | } |