mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Load relationships for revision
Summary: In the commit message parser worker, it tries to get relationships for a revision without first loading them. (D3444 introduced the change.) This is where the get happens, so I'm adding the load here - maybe it should be added in the CommitMessageParserWorker instead? Test Plan: Made this change, and my taskmaster daemons stopped failing. Reviewers: epriestley, vrana Reviewed By: vrana CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3448
This commit is contained in:
parent
958e6cd109
commit
90b60bc3c9
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ abstract class PhabricatorRepositoryCommitMessageParserWorker
|
|||
if ($revision_id) {
|
||||
$revision = id(new DifferentialRevision())->load($revision_id);
|
||||
if ($revision) {
|
||||
$revision->loadRelationships();
|
||||
queryfx(
|
||||
$conn_w,
|
||||
'INSERT IGNORE INTO %T (revisionID, commitPHID) VALUES (%d, %s)',
|
||||
|
|
Loading…
Reference in a new issue