Bzr

From OpenBrainstem

Jump to: navigation, search

The original Bazaar program was baz. It had problems and so the developers started to create Bazaar-ng and named the command bzr. At some point in 2006, they started to pretend that baz never happened, and "renamed" Bazaar-ng to Bazaar. This included the mapping of the http://www.bazaar-ng.org/ website to http://www.bazaar-vcs.org/ and the complete removal of all baz documentation.

Well, anyway, back to our regularly scheduled programming (pun intended) ...

Contents

[edit] Samples

These pages describe common tasks and the proper bzr commands to complete them.

[edit] Glossary of bzr Commands

Each of the bzr commands is described on it's own page. Here is a handy index for them.

[edit] Basic Commands

If you just run bzr without any parameters, you'll get this list:

 bzr init           makes this directory a versioned branch
 bzr branch         make a copy of another branch
 bzr add            make files or directories versioned
 bzr ignore         ignore a file or pattern
 bzr mv             move or rename a versioned file
 bzr status         summarize changes in working copy
 bzr diff           show detailed diffs
 bzr merge          pull in changes from another branch
 bzr commit         save some or all changes
 bzr log            show history of changes
 bzr check          validate storage
 bzr help init      more help on e.g. init command
 bzr help commands  list all commands

[edit] Full list

Add specified files or directories:

bzr add [FILE...]

Show the origin of each line in a file:

bzr annotate FILENAME

Bind the current branch to a master branch:

bzr bind LOCATION

Create a new copy of a branch:

bzr branch FROM_LOCATION [TO_LOCATION]

Break a dead lock on a repository, branch or working directory:

bzr break-lock [LOCATION]

Generate a revision bundle:

bzr bundle-revisions [BASE]

Write a file's text from a previous revision:

bzr cat FILENAME

Validate consistency of branch history:

bzr check [BRANCH]

Create a new checkout of an existing branch:

bzr checkout [BRANCH_LOCATION] [TO_LOCATION]

Commit changes into a new revision:

bzr commit [SELECTED...]

List files with conflicts:

bzr conflicts

List files deleted in the working tree:

bzr deleted

Show differences in the working tree or between revisions:

bzr diff [FILE...]

Export past revision to destination directory:

bzr export DEST

Show help on a command or other topic:

bzr help [TOPIC]

Ignore a command or pattern:

bzr ignore [NAME_PATTERN]

List ignored files and the patterns that matched them:

bzr ignored

Show information about a working tree, branch or repository:

bzr info [LOCATION]

Make a directory into a versioned branch:

bzr init [LOCATION]

Create a shared repository to hold branches:

bzr init-repository LOCATION

Show inventory of the current working copy or a revision:

bzr inventory [FILE...]

Show log of a branch, file, or directory:

bzr:logbzr log [LOCATION]

Perform a three-way merge:

bzr merge [BRANCH]

Show unmerged/unpulled revisions between two branches:

bzr missing [OTHER_BRANCH]

Create a new versioned directory:

bzr mkdir DIR...

Move or rename a file:

bzr mv [NAMES...]

Print or set the branch nickname:

bzr nick [NICKNAME]

Turn this branch into a mirror of another branch:

bzr pull [LOCATION]

Update a mirror of this branch:

bzr push [LOCATION]

Reconcile bzr metadata in a branch:

bzr reconcile [BRANCH]

Register a branch with launchpad.net (From plugin "launchpad"):

bzr register-branch BRANCH_URL

Redo a merge:

bzr remerge [FILE...]

Make a file unversioned:

bzr remove [FILE...]

Show list of renamed files:

bzr renames [DIR]

Mark a conflict as resolved:

bzr resolve [FILE...]

Revert files to a previous revision:

bzr revert [FILE...]

Show current revision number:

bzr revno [LOCATION]

Show the tree root directory:

bzr root [FILENAME]

Run the bzr server:

bzr serve

Sign all commits by a given committer:

bzr sign-my-commits [LOCATION] [COMMITTER]

Display status summary:

bzr status [FILE...]

Show testament (signing-form) of a revision:

bzr testament [BRANCH]

Unbind the current branch from its master branch:

bzr unbind

Remove the last committed revision:

bzr uncommit [LOCATION]

List unknown files:

bzr unknowns

Update a tree to have the latest code committed to its branch:

bzr update [DIR]

Upgrade branch storage to current format:

bzr upgrade [URL]

Show version of bzr:

bzr version

Generate version information about this tree:

bzr version-info [LOCATION]

Show or set bzr user id:

bzr whoami [NAME]
Personal tools