Page MenuHomePhabricator

D15607.diff
No OneTemporary

D15607.diff

diff --git a/src/applications/diffusion/query/DiffusionCommitQuery.php b/src/applications/diffusion/query/DiffusionCommitQuery.php
--- a/src/applications/diffusion/query/DiffusionCommitQuery.php
+++ b/src/applications/diffusion/query/DiffusionCommitQuery.php
@@ -364,7 +364,7 @@
if ($repo === null) {
if ($this->defaultRepository) {
- $repo = $this->defaultRepository->getCallsign();
+ $repo = $this->defaultRepository->getPHID();
}
}
@@ -375,7 +375,7 @@
$bare[] = $commit_identifier;
} else {
$refs[] = array(
- 'callsign' => $repo,
+ 'repository' => $repo,
'identifier' => $commit_identifier,
);
}
@@ -392,17 +392,16 @@
}
if ($refs) {
- $callsigns = ipull($refs, 'callsign');
+ $repositories = ipull($refs, 'repository');
$repos = id(new PhabricatorRepositoryQuery())
->setViewer($this->getViewer())
- ->withIdentifiers($callsigns);
+ ->withIdentifiers($repositories);
$repos->execute();
$repos = $repos->getIdentifierMap();
foreach ($refs as $key => $ref) {
- $repo = idx($repos, $ref['callsign']);
-
+ $repo = idx($repos, $ref['repository']);
if (!$repo) {
continue;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 5:16 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733495
Default Alt Text
D15607.diff (1 KB)

Event Timeline