Bazaar is a distributed revision control system.
If Bazaar is not installed on your operating system by default, you have to install the package bzr; e.g.:
sudo aptitude install bzr
Before you start working with Bazaar you should tell the system who you are:
bzr whoami "Max Mustermann <email@example.com>"
The following command allows you to check who you are:
Putting files under version control
If you have a project you want to work on using Bazaar as a version control system, please go to the project directory and execute the following commands:
bzr init bzr add
You can take a snapshot of your files by committing them to your branch:
bzr commit -m "Initial import"
If your work is already under version control, but you would like to add some more files to the project you can use the following command (in the project directory):
bzr add FILEORDIRECTORY
After you have modified some files in your project, you can show the differences using:
If you are satisfied you can commit your work to the Bazaar branch:
bzr commit -m "A short text describing what you have done"
To have a look at the revision log, please execute:
If the log is rather log, you might want to use the following command instead:
bzr log | less
Publishing your branch with Launchpad
bzr launchpad-login max.mustermann bzr push lp:~max.mustermann/yourProjectName/trunk
Create a copy of a branch
In order to create a copy of a branch managed by somebody else, go to the directory where you would like to store the corresponding files and execute the following command (replacing lp:fesslix with the branch you intend to copy):
bzr branch lp:fesslix
Updating your branch from the main branch
To merge changes from the main branch into your personal branch:
Check what has changed:
Commit the changes to your personal branch:
bzr commit -m "Merge from main branch"
Getting additional help
bzr help bzr help COMMAND_YOU_ARE_INTERESTED_IN