Cannot branch Python onto launchpad

Asked by TimeHorse

Hello,

I am trying to branch python from lp:python into a new development branch using the "Team Collaboration, central style" (as specified in the Bazaar Manual chapter 5) where launchpad would act at the central repository and I could then do development on different machines operating more or less in lock-step with the launchpad server. (i.e. using checkout and bind).

I have been trying for the past week to implement this model but it is so poorly documented I am completely lost. The manual talks about starting a new repository, but I want to branch from an existing repository and use the "Team Collaboration, central style" model.

Everything I've tried has failed, and I wish the documentation could be updated with a how-to about this.

The main problem I have is getting my branched repository onto launchpad. When I branch to a local copy and then push, I cannot pull or checkout that branch onto any other machine, which is wrong. In fact, I get the following error:

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

When I use the create branch button on the launchpad page and select "Launchpad hosts", it creates an empty repository that is not compatible with any push operations basically because the Repository type is unknown when Python branches are rich-root-pack, whatever that means. This known failure of launchpad is partially documented in https://answers.launchpad.net/bzr/+question/4820 but it does not say how to create a new directory via sftp.

I don't know of any place where I can post launchpad questions. Is there a forum for launchpad issues???? I searched and searched but, since I did find a crash situation with bazaar related to this issue (https://bugs.launchpad.net/bzr/+bug/221060), I am begging for help here.

Question information

Language:
English Edit question
Status:
Expired
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
TimeHorse (timehorse) said :
#1

BTW, I know what sftp is, I just don't understand where I am supposed to connect to and what I'm supposed to upload or download.

Revision history for this message
Elliot Murphy (statik) said :
#2

Since the branch you get from lp:python is an import, I don't think it will work very well to try and use that as the central repo that you commit back to. I would first creating your own branch:

bzr get lp:python
cd python
bzr push bzr+ssh://<email address hidden>/~timehorse/python/mybranch

Next, checkout from your new branch:
cd ..
bzr checkout bzr+ssh://<email address hidden>/~timehorse/python/mybranch my-python-checkout
cd my-python-checkout

now, when you do a bzr commit in my-python-checkout, the commit should be immediately saved up to launchpad.

Note that when I try these steps myself, I am seeing a strange error, which I will look into further. I hope this helps.

Revision history for this message
TimeHorse (timehorse) said :
#3

I get an error too:

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

The only thing different was you used "get" instead of "branch" but I still can't get it working.

Thanks for the suggestion, though! Greatly appreciated, Elliot!

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Elliot Murphy (statik) said :
#5

Were you able to get past this problem, or are you still experiencing it?
I really want you to be able to push code to launchpad.

Revision history for this message
TimeHorse (timehorse) said :
#6

Oh, thanks for reminding me about this Elliot!

Well, what I found is that for 1.3.1 and 1.3 under Unix and MacOS, I CANNOT push my branch onto Launchpad using the bzr+ssh protocol, but I WAS able to get it to work using sftp:// even though the site recommends using bzr+ssh.

I have not yet tested 1.4 but will try to check over the weekend and if bzr+ssh works for 1.4 I'll post and call it solved; if not, I'll post and conclude the resolution is simply use sftp in the place of bzr+ssh.

Thanks again, Elliot!

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.