Page MenuHomePhabricator

D18816.id45150.diff
No OneTemporary

D18816.id45150.diff

diff --git a/src/applications/diffusion/controller/DiffusionCommitController.php b/src/applications/diffusion/controller/DiffusionCommitController.php
--- a/src/applications/diffusion/controller/DiffusionCommitController.php
+++ b/src/applications/diffusion/controller/DiffusionCommitController.php
@@ -45,10 +45,13 @@
->withIdentifiers(array($commit_identifier))
->needCommitData(true)
->needAuditRequests(true)
- ->executeOne();
+ ->setLimit(100)
+ ->execute();
+
+ $multiple_results = count($commit) > 1;
$crumbs = $this->buildCrumbs(array(
- 'commit' => true,
+ 'commit' => !$multiple_results,
));
$crumbs->setBorder(true);
@@ -70,9 +73,22 @@
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($error);
+ } else if ($multiple_results) {
+ $list = id(new DiffusionCommitListView())
+ ->setViewer($viewer)
+ ->setCommits($commit);
+
+ $error = id(new PHUIInfoView())
+ ->setTitle(pht('Multiple Results'))
+ ->appendChild($list);
+ return $this->newPage()
+ ->setCrumbs($crumbs)
+ ->appendChild($error);
}
+
+
$audit_requests = $commit->getAudits();
$commit->loadAndAttachAuditAuthority($viewer);

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 1:10 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7720259
Default Alt Text
D18816.id45150.diff (1 KB)

Event Timeline