Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/diffusion/edge/DiffusionCommitHasRevisionEdgeType.php b/src/applications/diffusion/edge/DiffusionCommitHasRevisionEdgeType.php
index ce7a899bda..f59cb8e564 100644
--- a/src/applications/diffusion/edge/DiffusionCommitHasRevisionEdgeType.php
+++ b/src/applications/diffusion/edge/DiffusionCommitHasRevisionEdgeType.php
@@ -1,28 +1,69 @@
<?php
final class DiffusionCommitHasRevisionEdgeType extends PhabricatorEdgeType {
const EDGECONST = 32;
public function getInverseEdgeConstant() {
return DifferentialRevisionHasCommitEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
return true;
}
public function getConduitKey() {
return 'commit.revision';
}
public function getConduitName() {
return pht('Commit Has Revision');
}
public function getConduitDescription() {
return pht(
'The source commit is associated with the destination revision.');
}
+ public function getTransactionAddString(
+ $actor,
+ $add_count,
+ $add_edges) {
+
+ return pht(
+ '%s added %s revision(s): %s.',
+ $actor,
+ $add_count,
+ $add_edges);
+ }
+
+ public function getTransactionRemoveString(
+ $actor,
+ $rem_count,
+ $rem_edges) {
+
+ return pht(
+ '%s removed %s revision(s): %s.',
+ $actor,
+ $rem_count,
+ $rem_edges);
+ }
+
+ public function getTransactionEditString(
+ $actor,
+ $total_count,
+ $add_count,
+ $add_edges,
+ $rem_count,
+ $rem_edges) {
+
+ return pht(
+ '%s edited revision(s), added %s: %s; removed %s: %s.',
+ $actor,
+ $add_count,
+ $add_edges,
+ $rem_count,
+ $rem_edges);
+ }
+
}

File Metadata

Mime Type
text/x-diff
Expires
Wed, Nov 27, 1:19 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1268
Default Alt Text
(1 KB)

Event Timeline