Bzr:init-repository

From OpenBrainstem

Jump to: navigation, search

The bzr init-repository command is used to create a central repository copy of a branch under bzr revision control.

See also the bzr init and bzr checkout commands.

[edit] Common Usage

[edit] From the man Page

bzr init-repository LOCATION

Options:
--format ARG              Specify a format for this repository.
                          Current formats are: default, knit,
                          metaweave and weave. Default is knit;
                          metaweave and weave are deprecated
--help, -h                show help message
--trees                   Allows branches in repository to have a
                          working tree

Alias: init-repo

Create a shared repository to hold branches.

New branches created under the repository directory will store their revisions in the repository, not in the branch directory, if the branch format supports shared storage.

example:

bzr init-repo repo
bzr init repo/trunk
bzr checkout --lightweight repo/trunk trunk-checkout
cd trunk-checkout
 (add files here)
Personal tools