Newbie has a problem with shared repos

Nicholas Allen allen at ableton.com
Thu Sep 20 17:06:37 BST 2007


Tomasz Primke wrote:
>> 'bzr init' creates a *repository*, *branch* and a *working tree*.
>>
>> You need a *working tree* to do 'bzr add', 'bzr st' etc.
>>
>> 'bzr init-repo' creates a *repository* only.
>>     
>
> So, in order to create a shared repository I have to do:
>
> $ bzr init-repo /path/to/repo
>
> and then, provided the following repo structure:
>
> /path/to/repo/trunk
> /path/to/repo/branches
> /path/to/repo/tags
> I have to create empty branch in the trunk directory:
>
> $ cd /path/to/repo/trunk
> $ bzr init
>
> Now, when I want to create a branch in /path/to/repo/branch directory, I do:
>
> $ bzr branch /path/to/repo/trunk /path/to/repo/branch/a-new-branch
>
> And all branches created in such a way will share the (shared) repository.
>
> Am I right?
>   

Yes that is correct. Note that Bazaar has proper tag support so you 
don't need to create a tags directory in the repo like you would need to 
for subversion ;-)

Nick



More information about the bazaar mailing list