Cannot checkout a Launchpad hosted project

Bug #221370 reported by TimeHorse
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned

Bug Description

I have tried 2 different methods to create a Launchpad hosted project branch (specifically lp:python). They are the following:

On Launchpad:
1) Go to the Python project page and click the "Register Branch" link
2) Select "hosted" for project location, set the branch name to <branch_name> and fill in the rest of the data required
3) Follow the steps for remote branching below

Remotely:
1) Execute "bzr get/branch lp:python" (the get or branch code can be used; both will cause the specified problem).
2) Execute "cd python"
3) Execute "bzr push bzr+ssh://<uid>@bazaar.launchpad.com/~<uid>/python/<branch_name>"
4) Wait wait wait
5) Execute "cd .."
6) Execute "bzr checkout bzr+ssh://<uid>@bazaar.launchpad.com/~<uid>/python/<branch_name>"

In both cases, when you execute the checkout, you will get a cryptic message:

bzr: ERROR: Repository KnitPackRepository('file:///<path>/<branch_name>/.bzr/repository/') is not compatible with repository RemoteRepository(bzr+ssh://<uid>@bazaar.launchpad.net/%7E<uid>/<project_name>/<branch_name>/.bzr/)

It is therefor impossible to checkout a project from Launchpad created as a hosted project which therefore defeats the point of Launchpad hosting projects because the projects it hosts are broken.

Tags: lp-code
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-code
Revision history for this message
Jonathan Lange (jml) wrote :

Although it's not directly related to your problem, you don't need to take the steps on Launchpad that you describe.

Otherwise, my guess is that you've already got a repository at a higher level directory. What does 'bzr info' say at step 0 of "Remotely"?

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

Sorry it has taken so long to get to this.

Is this still a problem with a newer bzr?

Also, instead of steps 4, 5, and 6, have you looked at `bzr bind`?

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

> bzr: ERROR: Repository KnitPackRepository('file:///<path>/<branch_name>/.bzr/repository/') is not compatible with repository RemoteRepository(bzr+ssh://<uid>@bazaar.launchpad.net/%7E<uid>/<project_name>/<branch_name>/.bzr/)

Hi,

The problem here is that you have a repository on your local machine that uses an incompatible format with the code you're trying to bring from Launchpad. It's a bug in Bazaar that this situation is possible and that it's so confusing when you hit it, but it's largely fixed by bringing all branches to 2a format. It's not a bug in Launchpad. If you're still having trouble with this, please ask in https://answers.launchpad.net/bzr

Changed in launchpad-code:
status: Incomplete → Invalid
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.