How to create nested style shared repository layout?

Asked by Michael Gliwinski

Chapter 10.2.2 of Bazaar User Guide as well as point 2 of 'SharedRepositoryLayouts' wiki page (http://bazaar-vcs.org/SharedRepositoryLayouts) describes a very neat nested style layout. However it does not list steps required to create such layout. It might seem straightforward but consider this scenario: you have a project somewhere, e.g. $HOME/wrk/project.main, you create central repository for it:

$ bzr init-repo --no-trees /srv/bzr/project

How do you then make /srv/bzr/project to be the mainline of the project as well as repository?

`bzr clone $HOME/wrk/project.main /srv/bzr/project` returns an error ('ERROR: Target directory "project" already exists.'), so does bzr push ('ERROR: extra argument to command push: project').

Thanks in advance for any pointers.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
John A Meinel
Solved:
Last query:
Last reply:
Revision history for this message
Best John A Meinel (jameinel) said :
#1

"bzr push" uses the current working directory as the source, so it would be:

cd $HOME/wrk/project.main
bzr push /srv/bzr/project

Revision history for this message
Michael Gliwinski (tzeentch-gm) said :
#2

My mistake, that seems to be working. So in case of an already existing project the first branch has to be created with `bzr push' then? I understand that for any other branches I might want to put in the central repository it doesn't matter if I use push or clone (i.e. outcome will be the same), yes?

Revision history for this message
Michael Gliwinski (tzeentch-gm) said :
#3

Thanks John A Meinel, that solved my question.