code browsing broken for bzr branch

Asked by Steve Beattie on 2010-03-10

The bzr branch at https://code.launchpad.net/~kees/+junk/cpu-checker is not browsable, attempting to browse it at http://bazaar.launchpad.net/~kees/+junk/cpu-checker/files returns "Internal Server Error". The former page also displays the following error:

  No such file: u'/srv/bazaar.launchpad.net/mirrors/00/04/c5/b9/.bzr/repository/indices/d109970eec58fe734cfbb0d1a3bf06b2.rix': [Errno 2] No such file or directory: u'/srv/bazaar.launchpad.net/mirrors/00/04/c5/b9/.bzr/repository/indices/d109970eec58fe734cfbb0d1a3bf06b2.rix'

Finally, attempt to bzr branch from it fails:

  $ bzr branch lp:~kees/+junk/cpu-checker
  bzr: ERROR: No such file: '/srv/bazaar.launchpad.net/mirrors/00/04/c5/b9/.bzr/repository/indices/d109970eec58fe734cfbb0d1a3bf06b2.rix'

I am able to branch other bzr branches off of launchpad just fine.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
Tim Penhey Edit question
Solved by:
Steve Beattie
Solved:
2010-06-23
Last query:
2010-06-23
Last reply:
2010-06-23

The branch has become broken somehow. Probably the easiest thing is to get the owner to delete and re-push it.

Keith Hughitt (keith-hughitt) said : #2

Hello,

I've run into a similar problem with the trunk for a project I'm working on. Attempting to delete the branch in order to then restore it does not work, however, as Launchpad complains:

"This branch cannot be deleted as it has 5 branches sharing revisions. "

Any idea what the cause of this problem is, or how it can be resolved?

Keith Hughitt (keith-hughitt) said : #3

Update: I've decided to open a separate answer thread at https://answers.edge.launchpad.net/launchpad/+question/115561 since the proposed solution here is now suitable for us.

Steve Beattie (sbeattie) said : #4

In the specific case I reported above, kees ended up deleting that branch and pushed it to a new project + branch at https://code.launchpad.net/~cpu-checker-dev/cpu-checker/trunk. Thanks!

Steve Beattie (sbeattie) said : #5

(Well, it would be nice to know what caused the breakage in the first place, to verify that it doesn't happen again, but I don't think it's reproducible.)

Tim Penhey (thumper) said : #6

Keith, the problem exists due to the way Launchpad shares revisions.

Once a branch has been chosen as a trunk branch, other branches that are pushed to that project will share the revisions with the trunk branch. This does have the side-effect of not allowing the trunk branch to be deleted or the other branches will no longer have the revisions they need.

The simplest solution for this if changing the trunk branch, is to mark the old one as abandoned. This will make it not appear in the default listings, but will keep it around.