Differential D18416 Diff 44260 src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
| Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | if ($revision_id) { | ||||
| ->withIDs(array($revision_id)) | ->withIDs(array($revision_id)) | ||||
| ->setViewer($actor) | ->setViewer($actor) | ||||
| ->needReviewers(true) | ->needReviewers(true) | ||||
| ->needActiveDiffs(true); | ->needActiveDiffs(true); | ||||
| $revision = $revision_query->executeOne(); | $revision = $revision_query->executeOne(); | ||||
| if ($revision) { | if ($revision) { | ||||
| if (!$data->getCommitDetail('precommitRevisionStatus')) { | |||||
| $data->setCommitDetail( | |||||
| 'precommitRevisionStatus', | |||||
| $revision->getStatus()); | |||||
| } | |||||
| $commit_drev = DiffusionCommitHasRevisionEdgeType::EDGECONST; | $commit_drev = DiffusionCommitHasRevisionEdgeType::EDGECONST; | ||||
| id(new PhabricatorEdgeEditor()) | id(new PhabricatorEdgeEditor()) | ||||
| ->addEdge($commit->getPHID(), $commit_drev, $revision->getPHID()) | ->addEdge($commit->getPHID(), $commit_drev, $revision->getPHID()) | ||||
| ->save(); | ->save(); | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'INSERT IGNORE INTO %T (revisionID, commitPHID) VALUES (%d, %s)', | 'INSERT IGNORE INTO %T (revisionID, commitPHID) VALUES (%d, %s)', | ||||
| ▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines | |||||