Sharing a common library between (otherwise) unrelated projects
I have two projects which share the code of a common library. The projects are otherwise unrelated. The library still is in development, thus it will regularly change. Each project should have its *own state* of the library. However, it should be possible to pull/merge the current state of the library from one project into the other.
Example:
-----------
Project 1 consists of the following directories: E:\Project1\ and E:\Project1\Lib
Project 2 consists of the following directories: E:\Project2\ and E:\Project2\Lib
The code files in E:\Project1\ and E:\Project2\ are completely unrelated. However, the code files in the Lib-directories are related (but not necessarily identical).
I'd like to commit/push Project1 *inclusive* its Lib directory and to commit/push Project2 *inclusive* its Lib directory. Then I'd like to be able to pull/merge Project1\Lib into Project2\Lib *alone*, or Project2\Lib into Project1\Lib *alone*.
Is this possible? AFAIK, I can't simply use nested branches ("bzr init E:\Project1" and "bzr init E:\Project1\Lib") , because there is no "bzr commit --recursively E:\Project1" which would commit Project1 *inclusive* its Lib directory.
If my idea doesn't work with Bazaar, is there another way of (comfortably) managing both projects?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask besy for more information if necessary.