How to best add multiple projects?

Asked by Zearin

This is related to another question I asked, and was briefly touched upon there:
https://answers.launchpad.net/bzr/+question/54282

Basically, I've decided I want to put all my projects under version control using Bazaar. Trouble is there's a lot of separate projects, and they are organized hierarchically. Three questions:

     1. Is there an automatic way to tell bzr, "make all subdirectories of the current location into their own branch"?

     2. Is there an automatic way to tell bzr, "now that I've got each of my projects in their own branch, create subdirectories in each of them called /trunk, /branches, and /releases"?

     3. Since my projects are organized hierarchically, some directories are projects and others are containers for groups of related projects. When I add those containers to the repository, should I make them branches as well?

To illustrate…

/projects
     +- /net.domain ← should this be a branch?
     | +- /project1
     | +- /project2
     | +- …
     +- /net.other.domain
     | +- /project1
     | +- /project2
     | +- …

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Zearin (zearin) said :
#1

Is this a case where `bzr split` would be appropriate?

Revision history for this message
Vincent Ladeuil (vila) said :
#2

A1: No.

A2: No.

A3: There is no general answer to your question, until you know better, I advise you to create one repository by project and as many branches as you need. But wait until you really need a branch before creating one.

Can you help with this problem?

Provide an answer of your own, or ask Zearin for more information if necessary.

To post a message you must log in.