Page MenuHomePhabricator

D18762.id45027.diff
No OneTemporary

D18762.id45027.diff

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

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)

Event Timeline