Bazaar (or bzr) is a project of Canonical to develop an open source distributed version control system that is powerful, friendly, and scalable. ... It is used by Launchpad for managing revisions with packages. If you have never created a Launchpad project because bzr scared you, fear no more!
To get started, you should install the bzr application by running:
Code:
sudo apt-get install bzr
Launchpad / SSH Key
To create your SSH key, open a terminal and run:
Code:
ssh-keygen -t dsa
Code:
cat ~/.ssh/id_dsa.pub
https://launchpad.net/~username/+editsshkeys
Paste the key into "Add an SSH key" then click "Import Public Key". You should be all set now!
Using Bazaar
Suppose you found a project on Launchpad, that you wanted to help out with, or wanted to download their project source to tweak it to your own likings. I'll give my perlbot project as a quick example. If you go to:
https://code.launchpad.net/~drsmall/perlbot/trunk
You can view the trunk, and revisions for that project. If you wanted to download a copy of this trunk to your local system, you would issue this command:
Code:
bzr pull lp:perlbot
Ok. So let's say you want to start your own branch, where you can host your own edited version of some software, or it could be something you created by yourself that you want to be worked on by a team. Gather up all of the files you want to placed in your launchpad branch, and place them in one directory. cd to this directory, and then run:
Code:
bzr init
Code:
bzr add *
Code:
bzr diff
Code:
bzr commit -m "Revision 1 Comment"
Code:
bzr push lp:~user/projectname/branchname
Commands
Make directory a bzr branch:
Code:
bzr init
Code:
bzr pull
Code:
bzr push
Code:
bzr add
Code:
bzr diff
Code:
bzr commit -m "Revision Comment"
No comments:
Post a Comment