bzrtools- cbranch sets parent

Aaron Bentley aaron.bentley at utoronto.ca
Fri Jul 21 19:33:43 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel wrote:
> Aaron Bentley wrote:
>>>Perhaps it's full of all kinds of cruft because you don't rsync it ;-)
>>>
> Well, when I say cruft, I mean that I have all my working trees, etc in
> there.

That's what I figured.  My checkouts are not in my repo.  In fact, my
repo's on an NFS mount.

> At one point I was more careful not to mix my repositories, but since
> push, pull and branch have been fixed to only copy the ancestry and not
> the whole repository, I don't worry about it as much anymore.

Me too.  The main thing is to avoid mixing publicly redistributable code
with proprietary code.

> I think it might be worthwhile to have some sort of 'mirror repository'
> command. Coupled with 'heads' it would mean that you could guarantee you
> can get back any committed revision.

I would operate it on a per-branch basis, rather than per-head.  I don't
see the need to provide revisions that aren't present in any branch.

> So probably if I ran 'heads' on my repository, I would find lots of dead
> ends. If 'heads' was ever a core command, I think people would start
> clamoring for ways of really nuking entries. The short term fix would
> just be to rewrite revisions.kndx leaving out the sections you don't
> want. It still is just hiding the revisions, but they would be hidden
> from 'heads' at least.

In a 'nuclear launch codes' scenario, I think it would be bad if we made
it look like the revisions were deleted, when in fact, they weren't.

To return to the cbranch-sets-parent thing:
Is cbranch the right place for this?  Shouldn't checkout be setting the
parent to be the same as the checked-out branch's parent?  This the
behaviour you get with lightweight checkouts.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEwR4H0F+nu1YWqI0RAtHOAJ9jnCI/aXOZstpThGvTvc6H5LWdRgCePXmD
KOlYdl71a5UYmILchdlDTCk=
=tTUu
-----END PGP SIGNATURE-----




More information about the bazaar mailing list