Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14019030
D15607.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15607.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 9:11 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733495
Default Alt Text
D15607.diff (1 KB)
Attached To
Mode
D15607: Fix resolution of commits in SVN repositories without callsigns
Attached
Detach File
Event Timeline
Log In to Comment