image/svg+xml
Bazaar-NG quick reference
2007-07-23
Sabin Iacob
en
bzr
bazaar
reference
Initialization
bzr init myproject
New project
cd myprojectbzr initbzr add .
Existing project
bzr branch mp myproject
New branch
bzr checkout mp myproject
New checkout
bzr checkout --lightweight mp \ myproject
New "lightweight" checkout
File Manipulation
bzr add foo.pybzr add bar/
Add/"version" files
bzr remove --keep foo.py
Remove/"unversion" files
bzr remove --force foo.py
Remove and delete files
Information
bzr status
Working tree status
bzr logbzr log foo.py
Revision log
bzr diff
Working tree changes
bzr missing
Missing revisions
bzr cat -r3 foo.py
Contents of foo.py at revision 3
bzr info
Branch information:
bzr diff foo.py
foo.py changes
bzr diff -r1..3 foo.py
foo.py changes between revisions 1 and 3
Version Control
bzr commit foo.py -m "foo"bzr commit -m "the rest"
Commit
bzr uncommit
Undo last commit
bzr revert
Revert changes
Merging
cd myprojectbzr merge ../myproject-foobzr commit
Merge two branches
cd myproject-foobzr pull ../myproject
Pull changes from myproject
bzr update
Update a checkout
bzr resolve
Auto-detect resolved conflicts
bzr resolve foo.py
Specify resolved conflict
Publishing
bzr push sftp://host/myproject-fo1
Push revisions remotely
bzr push ../myproject-fo1
Push revisions
bzr send
Email a merge directive
bzr export ../myproject-dist/
Export current revision as a directory
bzr export ../myproject-dist.zip
Export current revision as anarchive
bzr send -o ../base.patch
Create a merge directive
Bazaar
Quick Start Card
Supported URL Prefixes
aftp://bzr://bzr+ssh://file:// ftp:// http://https://sftp://
Access using active FTP.Fast access using the Bazaar smart server.Fast access using the Bazaar smart server over SSH.Access using the standard filesystem (default)Access using passive FTP.Read-only access of branches exported on the web.Read-only access of branches exported on the web using SSL.Access using SFTP (most SSH servers provide SFTP).
Concepts
line of development for a projectversion controlled directory store for Bazaar revisionsversion of the source code committed to the repositorynamed revisionbranches having a common ancestorthe operation of applying to a branch all the changes introduced by another one
Branch:Working tree:Repository:Revision:Tag:Related branches:Merge:
More Information
bzr help
http://bazaar.canonical.com