We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

Juanje on 07/03/08


Tagged

push launchpad bazaar bzr


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

fontanon


Import branch on Launchpad bazaar repository


Published in: Bash 


URL: http://blogs.gnome.org/jamesh/2006/08/17/shared-branches-using-bazaar-and-launchpad/

I got problems to push my project to a brand new branch created on Launchpad and this helped me out. I've already created a new branch on Launchpad and imported my SSH key to be able to use sftp instead the standard 'lp:' (which is alias to http://bazaar.launchpad.net/), because http connections doesn't support mkdirs, so it wouldn't push a project with a directories.

You must change 'myproject' to the name of your register project on Launchpad and 'launchpaduser' to the user with you've registered the project. This last is just in case your machine user name is different to your launchpad user name. If those are the same you can take off the 'launchpaduser@' stuff between 'sftp://' and 'bazaar.launchpad.net/...'.

  1. user@machine:~/bzr/$ cd myproject
  2. user@machine:~/bzr/myproject$ bzr push sftp://launchpad_user@bazaar.launchpad.net/~launchpad_user/+junk/myproject --use-existing-dir

Report this snippet 

You need to login to post a comment.