switch (was Re: If bzrtools commands aren't experimental, merge them into bzr)

Aaron Bentley aaron.bentley at utoronto.ca
Thu Nov 15 16:35:08 GMT 2007


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

John Arbash Meinel wrote:
> I really would like to have switch brought into core. I would really prefer if
> it supported heavy checkouts.

Sure.  There's the edge case where the checkout has a different
last-revision from the branch.  I think the reasonable way to resolve
that is to error out, asking the user to run "update" first.

> Also, I believe it fails if the current target
> cannot be reached (which is one of the times when you would really want switch
> to work).

No, that was fixed recently.


> What we need, though, is a BranchReferenceFormat.set_reference().

Yeah.  I'd actually suggest making it more of a first-class object--
having BzrDir.open_branch_reference(), which returns a BranchReference,
which includes set_location.

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

iD8DBQFHPHU80F+nu1YWqI0RAvZ/AJ9hU98+JuciAAvydyp0SETlslahgwCfZiUy
VSruGS2gf2YE+IhSAZFGW64=
=fnlj
-----END PGP SIGNATURE-----



More information about the bazaar mailing list