Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14620356
D18762.id45027.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18762.id45027.diff
View Options
diff --git a/src/applications/differential/edge/DifferentialRevisionDependedOnByRevisionEdgeType.php b/src/applications/differential/edge/DifferentialRevisionDependedOnByRevisionEdgeType.php
--- a/src/applications/differential/edge/DifferentialRevisionDependedOnByRevisionEdgeType.php
+++ b/src/applications/differential/edge/DifferentialRevisionDependedOnByRevisionEdgeType.php
@@ -13,6 +13,20 @@
return true;
}
+ public function getConduitKey() {
+ return 'revision.child';
+ }
+
+ public function getConduitName() {
+ return pht('Revision Has Child');
+ }
+
+ public function getConduitDescription() {
+ return pht(
+ 'The source revision makes changes required by the destination '.
+ 'revision.');
+ }
+
public function getTransactionAddString(
$actor,
$add_count,
diff --git a/src/applications/differential/edge/DifferentialRevisionDependsOnRevisionEdgeType.php b/src/applications/differential/edge/DifferentialRevisionDependsOnRevisionEdgeType.php
--- a/src/applications/differential/edge/DifferentialRevisionDependsOnRevisionEdgeType.php
+++ b/src/applications/differential/edge/DifferentialRevisionDependsOnRevisionEdgeType.php
@@ -17,6 +17,19 @@
return true;
}
+ public function getConduitKey() {
+ return 'revision.parent';
+ }
+
+ public function getConduitName() {
+ return pht('Revision Has Parent');
+ }
+
+ public function getConduitDescription() {
+ return pht(
+ 'The source revision depends on changes in the destination revision.');
+ }
+
public function getTransactionAddString(
$actor,
$add_count,
diff --git a/src/applications/differential/storage/DifferentialRevision.php b/src/applications/differential/storage/DifferentialRevision.php
--- a/src/applications/differential/storage/DifferentialRevision.php
+++ b/src/applications/differential/storage/DifferentialRevision.php
@@ -986,6 +986,18 @@
->setKey('status')
->setType('map<string, wild>')
->setDescription(pht('Information about revision status.')),
+ id(new PhabricatorConduitSearchFieldSpecification())
+ ->setKey('repositoryPHID')
+ ->setType('phid?')
+ ->setDescription(pht('Revision repository PHID.')),
+ id(new PhabricatorConduitSearchFieldSpecification())
+ ->setKey('diffPHID')
+ ->setType('phid')
+ ->setDescription(pht('Active diff PHID.')),
+ id(new PhabricatorConduitSearchFieldSpecification())
+ ->setKey('summary')
+ ->setType('string')
+ ->setDescription(pht('Revision summary.')),
);
}
@@ -1002,6 +1014,9 @@
'title' => $this->getTitle(),
'authorPHID' => $this->getAuthorPHID(),
'status' => $status_info,
+ 'repositoryPHID' => $this->getRepositoryPHID(),
+ 'diffPHID' => $this->getActiveDiffPHID(),
+ 'summary' => $this->getSummary(),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 3:43 AM (17 h, 36 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6983983
Default Alt Text
D18762.id45027.diff (2 KB)
Attached To
Mode
D18762: Provide revision parent/child edges in `edge.search`, and more information in `differential.revision.search`
Attached
Detach File
Event Timeline
Log In to Comment