Vincent Ladeuil <[EMAIL PROTECTED]> writes:

>     stefan> bzr init $NICK initializes a new repository
>     stefan> Is this correct?
>
> No, it initializes a branch (bzr init-repo initializes a
> repository).

A few precisions to understand why this works:

In bzr, a branch is a directory. You never have several branches in
the same directory. _but_, several branches can share their storage,
as it is the case for Vincent. Conceptually, a branch is essentially a
reference to its tip revision, as in Git, except that it's stored in a
different directory.

>     stefan> Or do you have some kind of shared layout?
>
> Yes I do have a shared repository at ~/src/bzr/.bzr, so that any
> 'bzr init' or 'bzr branch' issued below ~/src/bzr will use it.
>
> But this is bzr stuff, the script itself doesn't care, it just
> does bzr init and depending on the location it will use a shared
> repository or creates a new one inside the branch.

The reason why this works here is that the base revision for the
bundle is already in the shared repository. So, the repository has the
info to go from nothing to the base revision, and the bundle has
what's needed to further.

-- 
Matthieu

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to