Diff for "BzrHowto"

Not logged in - Log In / Register

Differences between revisions 1 and 2
Revision 1 as of 2007-03-22 05:31:49
Size: 2141
Editor: 200-127-179-13
Comment: Moved from: https://wiki.ubuntu.com/Launchpad/BzrHowto
Revision 2 as of 2008-04-10 17:27:33
Size: 2150
Editor: bas1-toronto09-1279474835
Comment:
Deletions are marked like this. Additions are marked like this.
Line 37: Line 37:
'''bzr push sftp://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch'''
Line 46: Line 46:
'''bzr checkout http://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr checkout bzr+ssh://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch'''
Line 61: Line 61:
'''bzr push sftp://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch'''

First step would be to install bzr.

Open up a terminal and type:

sudo aptitude install bzr

Now we should make sure bzr knows who we are:

bzr whoami "Your Name <your@email>"

once completed, make sure you have the "python-paramiko" package installed:

sudo aptitude install python-paramiko

To interact with launchpad in any way, you must have an account and a SSH key registered, so make sure you have both.

Next you would need to register a product.

Once you have all of those steps covered, you have to create a repository of what you want to upload, so go to the directory where all the files are:

cd project_dir

and then create the initial local repository:

bzr init

bzr add (this adds all the files in the directory, see bazaar documentation to exclude files or directories)

bzr commit -m "first commit"

Your local bzr repository is now ready to be sent to launchpad.

You would do this with:

bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch

Your project is now hosted on Launchpad. Keep in mind it might take a few minutes after the push is done succesfully for everything to work correctly.

Any user who wants to work on the project has two different approaches:

Checkouts: Usually recommended for quick changes, it commits straight into Launchpad

bzr checkout bzr+ssh://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch

Branches: For bigger changes, it commits locally and you push the changes to Launchpad when ready

bzr branch http://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch

Whenever making changes to the files, both approaches need a:

bzr commit -m "a comment on what has been changed"

But when using branches, you also need send your changes:

bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch

More information on bzr:

http://bazaar-vcs.org/Tutorials/CentralizedWorkflow http://blogs.gnome.org/view/jamesh/2006/08/17/1

BzrHowto (last edited 2009-05-05 14:29:45 by 153-130-244-190)