push + bind in a single operation ?
Robert Collins
robertc at robertcollins.net
Wed Sep 27 01:45:56 BST 2006
On Wed, 2006-09-20 at 11:40 +0200, Erik Bågfors wrote:
> > > I'm a big fan of letting pull and push be each others opposites. so,
> > > I vote branch.
> >
> > branch is used to create a new line of development, which this isn't
> > doing: its creating a mirror of the current line of development, *and*
> > making the current branch a checkout of the remote.
>
> True,
>
> But in a more general case. I find this confusing
>
>
> 1) I want to create a mirror of my branch on a public location. I do
> NOT want to create a new line of development. I can use
> "bzr push sftp://",
> then whenever I want to update the mirror I can use
> "bzr push"
Yep.
> 2) I want to create a mirror of bzr.dev on my laptop, and follow
> development. I do NOT want to create a new line of development right
> now. What I need to do is
> bzr branch http://...../bzr.dev
> Then, "cd bzr.dev; bzr pull" when I want to update
bzr checkout http://.../bzr.dev; bzr update to update.
I think having a two-parameter push might be very nice though: bzr push
http://.../bzr.dev bzr.dev
> So, in the second case, I cannot use "bzr pull" to pull down the
> entire branch. I need to do branch. In fact, I can use "bzr get"
> instead, which is the same thing, but fits my thinking better, since I
> don't want a new line of development.
I'm of the opinion that 'bzr get' should be an alias for 'bzr checkout'.
Particularly now that it works over readonly transports.
> That's why I would like pull and push to work the same way.
>
> Actually, in the second case, I guess using "bzr checkout" is a good
> idea? Since I don't want to commit to it by mistake and the checkout
> makes it readonly.
Yup.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060927/b280e230/attachment.pgp
More information about the bazaar
mailing list