Playing with stacked branches
Aaron Bentley
aaron at aaronbentley.com
Tue Apr 1 19:45:49 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Moore wrote:
> On 01/04/2008, Aaron Bentley <aaron at aaronbentley.com> wrote:
>> The error when a stacked-on branch is missing is not very clear:
>> $ sbzr log bzr.ab2
>> bzr: ERROR: Not a branch: "/home/abentley/shallowtest/bzr.ab/".
>
> This implies that stacked branches do not work in isolation from heir
> "parent" - in the same way that checkouts don't.
In Bazaar, checkouts do work without their parent for readonly
operations. For write operations, you can commit --local if the parent
is not visible.
Lightweight checkouts are more like you describe-- even readonly
operations like log don't work when the referenced branch is not visible.
> So I can't create a shallow/stacked branch
To me, the current implementation of stacked branches is *not* the same
thing as shallow branches. This is why I was questioning the use of the
term "shallow". Martin has said, "it is not called a shallow branch at
the moment. It is a stacked branch."
> of (say) only the last
> year's worth of revisions of Python, and carry that around with me for
> local use while disconnected? That's a shame, as that's a key use for
> me (well, the only use I have in reality...)
Yes, it's a shame that stacked branches won't support that use case.
However, they are a step along the path toward true shallow branches.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH8oLd0F+nu1YWqI0RApyuAJ4um5lwd426/qMnuhy+Nq/wFnDhswCeJjwP
7xStjkxiU7qamqWuk+9CmTQ=
=iIlh
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list