Branch exists in web ui but can't be accessed via bzr

Bug #526820 reported by Martin Owens
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ground Control
Confirmed
Medium
Unassigned

Bug Description

Trying to do either bzr branch or bzr checkout on an empty launchpad repository:

bzr branch lp:~ubuntu-minnesota/ubuntu-minnesota-projects/website

causes the error:

bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~ubuntu-minnesota/ubuntu-minnesota-projects/website/".

This error is passed along to groundcontrol users and is confusing and upsetting as it seems to be telling them that their branch that they can see in launchpad, doesn't exist.

What I found out is that the branch has no revisions. It _is_ a branch, it's just an empty one, a sproutling perhaps.

Is it possible to get bazaar to give more meaningful error text in the case where it finds an empty launchpad bazaar branch?

Revision history for this message
Martin Pool (mbp) wrote :

Thanks for reporting this, I'm very interested in hearing feedback from ground-control users.

That branch does not in fact seem to exist yet at the bzr level, eg https://bazaar.launchpad.net/~ubuntu-minnesota/ubuntu-minnesota-projects/website/.bzr is 404. This may be a reflection of people creating the branch in the web ui but not yet pushing to it. I believe the lp code team is going to block that. If you push to or initialize that branch inside bzr then it should be ok.

summary: - Checking out empty repository error is misleading.
+ Branch exists in web ui but can't be accessed via bzr
affects: bzr → launchpad-code
Revision history for this message
Martin Pool (mbp) wrote :

The web ui does say "this branch has not yet been pushed to". Maybe it should do something similar inside bzr.

Revision history for this message
Martin Owens (doctormo) wrote :

Perhaps since I know the branch exists in launchpad in GC (because the user just selected it) I could rewrite the error on the fly (I already rewrite some other errors to make them a little more friendly and fit in the box) to say "This branch is empty and has not been pushed to yet."

Thoughts? or Should I push more to have these changes reflected directly in bazaar?

Revision history for this message
Martin Pool (mbp) wrote :

I think you could rewrite that reasonably; perhaps Launchpad should give a better message though. There's not much we can do in the bzr client here.

Revision history for this message
Tim Penhey (thumper) wrote :

Both the last_scanned_id and revision_count are exported on the branch.

Are these sufficient for you to use in GC?

Changed in launchpad-code:
status: New → Incomplete
Revision history for this message
Martin Owens (doctormo) wrote :

that should be enough to make sure the error message is reformed. I'm setting this to a GC bug.

affects: launchpad-code → groundcontrol
Changed in groundcontrol:
status: Incomplete → Confirmed
Martin Owens (doctormo)
Changed in groundcontrol:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.