= Bazaar Notes = == Setup Environment == $ vi ~/.bazaar/bazaar.conf [DEFAULT] email = RuneImp BZR_EDITOR=vim [ALIASES] recentlog=log -r-3..-1 ll=log --line -r-10..-1 == Setup Project == $ bzr init $ bzr st $ bzr add $ bzr ci -m "Initial import." == Repositories == bzr init # Creates a branch with local repository. bzr init-repo # Creates a shared repository. bzr init-repo --no-trees # Creates a shared repo where branches will not get a working tree. bzr pack # Optimizes a repositories indices. == Working Trees == bzr checkout # (SVN Like) Creates a first class branch. Complete local history/working tree. Linked to master repo where commits go first. bzr checkout --lightweight # (Very SVN Like) Creates a second class branch. No local history/working tree. No local commits. bzr update # Updates the working tree created by a checkout from the master branch's shared repo. bzr bind # Binds the local working tree to a different shared repo. Or converts a lightweight checkout to heavyweight. bzr unbind # Turns a checkout branch into a standalone branch. == Maintenance and Optimization == //