Local:Using Bazaar bzr
A main characteristic of distributed version control systems is that a branch is both a repository and a working copy and hence a first-class citizen. Each operation of a DVCS is executed in this local branch and does not require (network) access to the master repository.
It is also possible to have repositories without a working tree (roughly equal to a repository in SVN) and standalone working trees that are bound to a master repository (again similar to SVN).
Creating a branch
To initialize a branch (repository + working tree) in a folder, type
If you want a repository only, type
bzr init --no-tree
Checking repository status
To see uncommitted changes, type
Unlike SVN, this reports changes for the whole repository, not just the current folder. To get the status for the current folder type
bzr status .
and similar for any target folder
To commit (check in) changes, type
and your favorite (or default) editor will open for you to provide a log message
You can specify the log message on the command line via
bzr ci -m "<message>"
Branching in bzr is a no-brainer. To clone a branch (both its repository and working tree), type
bzr branch <source> <destination>
To checkout a working copy only that is bound to a repository (SVN style), use
bzr checkout <source> <destination>
Unlike SVN, it is not possible to check out / clone only parts of a branch since it is one unit in a DVCS.