Show Menu

Bazaar version control system Cheat Sheet by [deleted]

Most used Bazaar commands

Bazaar commands and tricks

All the latest docume­ntation is available here:

From SVN to Bazaar

Checking out a project
svn co URL workin­g_d­ire­ctory
bzr co --ligh­tweight URL workin­g_d­ire­ctory
Adding new files
svn add file1 file2
bzr add file1 file2
Viewing history
svn log
bzr log --short
svn log -r 10:25
bzr log -r 10..25
Changing to a previous revision
svn up -r 25
bzr revert -r 25

Creating new code

Create a branch
bzr branch [Repos­ito­ry_URL] [New_B­ran­ch_Url]
Commit with message
bzr commit -m "­[ME­SSA­GE]­"

Edit current code

Get the status of a file (modified, added, ...)
bzr status
Detect files that have been moved
bzr move --auto
Revert the working tree to the latest revision in the branch
bzr revert
Revert the working tree back to a specific revision N
bzr revert -rN
Checkout the code locally
brz checkout [Repos­ito­ry_Url] [local­_path]

View changes and status

Get the status (modified, added, ...)
bzr status
Show changes between the last revision in this branch, and the current tree
bzr diff
History of the branch
bzr log

Handle branches

bzr build [Recip­­e_­R­e­po­­sit­­or­y­_URL] [tmp_n­­am­e­_­of­­_merge]
bzr build [Recip­­e_­R­e­po­­sit­­or­y­_URL] [tmp_n­­am­e­_­of­­_merge]
Push the merged code to the parent
bzr push :parent


No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Subversion Cheat Sheet
          Mercurial (Hg) Cheat Sheet
          Git Cheat Sheet

          More Cheat Sheets by [deleted]

          Php code templates for NetBeans Cheat Sheet
          Yii code templates for Netbeans Cheat Sheet
          Php + Yii code templates for NetBeans Cheat Sheet