Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14012003
D16239.id39063.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16239.id39063.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16239: Improve bin/differential attach-commit
Attached
Detach File
Event Timeline
Log In to Comment