Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14361505
D9918.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
D9918.diff
View Options
diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php
--- a/src/applications/diffusion/controller/DiffusionRepositoryController.php
+++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php
@@ -29,13 +29,14 @@
// If this VCS supports branches, check that the selected branch actually
// exists.
if ($drequest->supportsBranches()) {
- $ref_cursor = id(new PhabricatorRepositoryRefCursorQuery())
+ // NOTE: Mercurial may have multiple branch heads with the same name.
+ $ref_cursors = id(new PhabricatorRepositoryRefCursorQuery())
->setViewer($viewer)
->withRepositoryPHIDs(array($repository->getPHID()))
->withRefTypes(array(PhabricatorRepositoryRefCursor::TYPE_BRANCH))
->withRefNames(array($drequest->getBranch()))
- ->executeOne();
- if ($ref_cursor) {
+ ->execute();
+ if ($ref_cursors) {
// This is a valid branch, so we necessarily have some content.
$page_has_content = true;
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 11:31 AM (18 h, 13 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6913814
Default Alt Text
D9918.diff (1 KB)
Attached To
Mode
D9918: Fix issue in Mercurial repos with duplicate branch heads
Attached
Detach File
Event Timeline
Log In to Comment