Bazaar version control system Cheat Sheet

A Programming › Programming cheat sheet in English by [deleted]

Most used Bazaar commands

12,859 views 4,122 downloads 17 Jun 2014 History
3.8 avg · 1 rating

Bazaar commands and tricks

Bazaar commands and tricks
All the latest docume­ntation is available here:
http:/­/do­c.b­aza­ar.c­an­oni­cal.co­m/l­ate­st/en/

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

Badges

Nice Cheat Sheet Good Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.