Page MenuHomePhabricator

Its not possible to Import/Use mercurial repository in diffusion if there isn't a branch named default.
Closed, ResolvedPublic

Description

We've updated phabricator from 12th October to now. And our main repository is broken in diffusion. We tried to re-create the repository but it breaks for the same reason.

The errors are:

Screenshot_from_2015-01-29_18:07:35.png (361×313 px, 24 KB)

When you click on the default branch you get

Screenshot_from_2015-01-29_18:07:26.png (233×490 px, 16 KB)

Event Timeline

elastinuno raised the priority of this task from to Needs Triage.
elastinuno updated the task description. (Show Details)
elastinuno added a subscriber: elastinuno.
epriestley claimed this task.

Go to DiffusionChoose a RepositoryEdit RepositoryBranchesEdit Branches and set a different default branch.

In T7085#93884, @chad wrote:

@wokuku let us know if this isn't correct for your issue.

I think the problem with my repository is that I have more than one "default" branch. Which is different from the title of this bug. But if going by the screenshot then yes look like the same issue (more than one default branch)

I am getting around this problem now by reseting this file
src/applications/diffusion/request/DiffusionRequest.php
to d94d1da

Thank you @wokuku I haven't had the time to find out what was going. But I followed your suggestion and it is actually that what I also noticed is that in the branches screenshot there are several branches for default when in reality there should only be one.

work$ hg branches
default                     5279:985ced491e21

Screenshot_from_2015-01-29_18:07:35.png (361×313 px, 24 KB)

Thank you very much