Diff for "BzrHowto"

Not logged in - Log In / Register

Differences between revisions 3 and 4
Revision 3 as of 2008-06-17 14:21:20
Size: 2150
Editor: localhost
Comment: converted to 1.6 markup
Revision 4 as of 2009-05-05 14:29:45
Size: 1911
Editor: 153-130-244-190
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
once completed, make sure you have the "python-paramiko" package installed:

'''sudo aptitude install python-paramiko'''
'''bzr launchpad-login USERNAME'''
Line 37: Line 34:
'''bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr push lp:~launchpad_user_or_team/project_name/branch'''
Line 46: Line 43:
'''bzr checkout bzr+ssh://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr checkout lp:~launchpad_user_or_team/project_name/branch'''
Line 51: Line 48:
'''bzr branch http://bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr branch lp:~launchpad_user_or_team/project_name/branch'''
Line 61: Line 58:
'''bzr push bzr+ssh://your_launchpad_user@bazaar.launchpad.net/~launchpad_user_or_team/project_name/branch''' '''bzr push lp:~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>"

bzr launchpad-login USERNAME

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 lp:~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 lp:~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 lp:~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 lp:~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)