Page MenuHomePhabricator

D16239.id39063.diff
No OneTemporary

D16239.id39063.diff

diff --git a/src/applications/differential/management/PhabricatorDifferentialAttachCommitWorkflow.php b/src/applications/differential/management/PhabricatorDifferentialAttachCommitWorkflow.php
--- a/src/applications/differential/management/PhabricatorDifferentialAttachCommitWorkflow.php
+++ b/src/applications/differential/management/PhabricatorDifferentialAttachCommitWorkflow.php
@@ -61,6 +61,20 @@
->needActiveDiffs(true)
->executeOne();
+ $commit_drev = DiffusionCommitHasRevisionEdgeType::EDGECONST;
+ id(new PhabricatorEdgeEditor())
+ ->addEdge($commit->getPHID(), $commit_drev, $revision->getPHID())
+ ->save();
+
+ $conn_w = id(new DifferentialRevision())->establishConnection('w');
+
+ queryfx(
+ $conn_w,
+ 'INSERT IGNORE INTO %T (revisionID, commitPHID) VALUES (%d, %s)',
+ DifferentialRevision::TABLE_COMMIT,
+ $revision->getID(),
+ $commit->getPHID());
+
$differential_phid = id(new PhabricatorDifferentialApplication())
->getPHID();

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 2, 6:51 AM (6 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710742
Default Alt Text
D16239.id39063.diff (1 KB)

Event Timeline