'bzr switch' and a lightweight checkout of a bound branch

John Arbash Meinel john at arbash-meinel.com
Fri Nov 30 03:50:12 GMT 2007


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

At the moment you can quite easily have a lightweight checkout of a bound branch.

  bzr init a
  bzr checkout a b
  bzr checkout --lightweight b c

The reason you can do that, is because internally we redirect requests to open
the branch at C into opening the branch at B. So most of the code never even
realizes that C exists.

I was just thinking about 'bzr switch' performance in checkouts, and that it
shouldn't be too hard to get it working for heavyweight checkouts.

But we at least need to think about what "bzr switch" should do if you do "bzr
switch" in 'c'.

I *think* it should just move the lightweight pointer to another location.

But whatever the behavior, we should make sure there is a test for it, so that
we don't change the behavior accidentally at some point.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHT4h0JdeBCYSNAAMRAuGGAJwP3HSOYM9Qh+4k9q1TywfUIPNjZQCfS746
/uz01ood+xh3+Lq6rJm+rlk=
=lcx4
-----END PGP SIGNATURE-----



More information about the bazaar mailing list