Using bzr and launchpad behind a proxy

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
(Created page with 'Bazaar is the distributed VCS which is used if you want to host your software on Canonical sponsored Launchpad service (https://launchpad.net/). If you are behind a corporate fi…')
m (Added category tag)
 
Line 16: Line 16:
Now if you want to fetch a branch on a Launchpad hosted project, just run:
Now if you want to fetch a branch on a Launchpad hosted project, just run:
  bzr branch bzr+ssh://bazaar.launchpad.net/~project-rootstock-developers/project-rootstock/trunk
  bzr branch bzr+ssh://bazaar.launchpad.net/~project-rootstock-developers/project-rootstock/trunk
 +
 +
 +
[[Category:Tools]]

Latest revision as of 15:31, 25 May 2010

Bazaar is the distributed VCS which is used if you want to host your software on Canonical sponsored Launchpad service (https://launchpad.net/).

If you are behind a corporate firewall, there are some problems when trying to fetch/push on a launchpad hosted project. Behind a firewall, only the SSH protocol can be used, even to fetch. As such you will first need to have a valid launchpad account.

There are some interesting information about the problems behind a firewall in this article: http://xiaohui-liu.blogspot.com/2009/04/bzr-under-firewall.html.

To use bzr behind a firewall, you will need some similar configuration as with git. For example, if you want to get source code from launchpad, you need to edit the file $HOME/.ssh/config and add this:

Host *.launchpad.net
   ProxyCommand corkscrew <proxy> <port> %h %p
   User <your launchpad account name>

Of course like with git, you need to have corkscrew installed. If you run Ubuntu (or any other Debian based distro):

sudo apt-get install corkscrew

Now if you want to fetch a branch on a Launchpad hosted project, just run:

bzr branch bzr+ssh://bazaar.launchpad.net/~project-rootstock-developers/project-rootstock/trunk
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox