re 0.15rc3/win32: bug report, suggestion and question
John Arbash Meinel
john at arbash-meinel.com
Thu Apr 5 22:58:07 BST 2007
Aaron Bentley wrote:
> John Arbash Meinel wrote:
>> Martin Pool wrote:
>>> On 4/1/07, Andrew Voznytsa <andrew.voznytsa at gmail.com> wrote:
>>> So you're trying to unbind from the ssh location and bind to a UNC
>>> location, and that fails because you can't reach the ssh server?
>> He has a lightweight checkout, so bind and unbind don't do anything.
>
> Actually, I'm pretty sure that with a lightweight checkout, bind and
> unbind affect the checked-out branch. So
>
> bzr checkout foo bar
> cd bar; bzr bind baz
>
> should bind foo to baz.
>
Well:
bzr checkout --lightweight foo bar
cd bar
bzr bind baz
will do that.
Are you saying that heavyweight checkouts should work the same? (If so,
how do you change the target of the current checkout, lightweight or
heavyweight).
Especially since 'bzr unbind' will effect the local checkout, I think
'bzr bind' should effect it as well. (Also because you can't commit
changes to a checkout of a checkout).
I wonder if we were right to make lightweight checkouts and heavyweight
checkouts. Rather than checkouts and bound branches... But, we are where
we are.
>> I would like to see BranchReference.open() be a proxy, because it would
>> also help commands like 'bzr status', since they won't have to connect
>> to the remote branch at all.
>
> I'd like to radically revamp lightweight checkouts so that their
> branches aren't references at all. Instead they're Branch6-ish branches
> with "use_bound_repo=True". So they use the bound repo, and they can't
> be unbound, but they're otherwise the same as heavyweight checkouts.
Interesting thought, and it seems fairly reasonable.
I don't really want to get rid of BranchReference, though. As I think
they have proven to be useful in their own right.
Aside from the Launchpad "hack" of redirection, they also allow me to
move branches and include a reference to the new location. So when I
move a plugin's official location from my local machine, into being on
Launchpad, (and then creating a auto-updated local mirror in my
'mirrors/' directory). I can redirect people without interrupting thing.
>
>> That brings up another question, though. Would we want 'bzr bind' to
>> take over the 'bzr switch' ability? The biggest difference (right now)
>> is that 'bzr switch' automatically runs 'bzr update'. (Also, 'bzr
>> switch' is explicitly hard-coded to not work on heavyweight checkouts).
>
>> Thoughts?
>
> I want bzr update to take on bzr switch functionality.
>
> Aaron
So basically you would allow 'bzr update' to take a remote location?
Since it already takes a local location, would you change it to:
bzr update . sftp://other/branch
John
=:->
More information about the bazaar
mailing list