Actions

Bazaar Guide bzr

From zen2

Revision as of 20:19, 21 July 2010 by 60.234.148.95 (talk) (To create a linked copy to the current directory)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Centralized Trunk

This method requires a server to hold the truck.

Setup the server for the trunk

Set up the branch

bzr init-repo --no-trees sftp://chris@orac/media/raid/Development/bzr

Set up the Repository

bzr init sftp://chris@orac/media/raid/Development/bzr/cf

Checkout the Repository

bzr checkout sftp://chris@orac/media/raid/Development/bzr/cf .

Add Files and Commit

Now add your files to this directory then commit them to synchronise with the server

bzr add
bzr commit -m "Initial Load"

Usage

Once it is set up on the clients all you need to do is:

To create a linked copy to the current directory

Only do this once

bzr checkout sftp://chris@orac/media/raid/Development/bzr/cf .

Commiting work

Once this has been done edit as normal,once you are happy with the changes

bzr commit

will commit changes to the client and server automatically.

Latest Version from Server

To ensure you have the latest version from the server

bzr update

List commits

bzr log

Revert to a previous commit

bzr revert -r 4

where 4 is the version number you got from the bzr log

Problems

If you get Conflict Detected type error try

bzr resolve --all