Global shared repositories

Alexander Belchenko bialix at ukr.net
Wed Mar 12 11:56:32 GMT 2008


Ville M. Vainio пишет:
> On Wed, Mar 12, 2008 at 12:59 PM, Harald Meland
> <harald.meland at usit.uio.no> wrote:
> 
>>  > Wouldn't it be handy to provide an environment variable (e.g.
>>  > BZR_SHARED_REP_DIR) to point to a shared repository that is global for
>>  > all the projects in the machine?
>>
>>  To expand somewhat on Alexander's reply: No, I don't think so.
>>
>>  Shared repositories are merely an space optimization, and they will
>>  only do any optimization if any branches shares some subset of
>>  revisions.
>>
>>  This means that there is little point in storing unrelated projects in
>>  the same shared repository.
> 
> There would be, for people who only develop for, say, 2 or 3 different
> projects, and want more flexibility for their directory layout but
> still conserve space.

Because you're on Windows (right?) if you have only drive C: in your system
you could put shared repo in the root of C:. That's all.
Of course in the case of multiple drives things are become more tricky.

But it's good in the case e.g. USB flash drive. One can forgot about
global shared repo, do a push on the USB drive, disconnect it, go to
anther computer and... OOPS!




More information about the bazaar mailing list