[MERGE] make 'push' default to parent branch
robertc at robertcollins.net
Tue Jul 29 23:54:29 BST 2008
On Tue, 2008-07-29 at 16:43 -0600, Scott Scriven wrote:
> * Colin D Bennett <colin at gibibit.com> wrote:
> > The situation is different for a pull, ... the target of
> > modifications due to a pull is clear to anyone executing a pull
> > command.
> Where I disagree is that I think the target of a push is also
> pretty clear. At least, for anyone who is accustomed to a
> different SCM tool (since git, hg, bitkeeper, darcs, svn, and cvs
> all send changes back to their original upstream source by
> default), and for many who have no relevant experience at all (if
> the system knows only one URL, it's a reasonable default).
I think most folk with no relevant experience will be contributing to an
existing project (its much harder to start a new project than bugfix an
existing one); few projects allow $random to push directly into their
branches, so I don't think its a reasonable default for that case.
> What I find confusing or surprising is having "commit" behave
> differently in different branches, recording changes locally
> sometimes and pushing changes upstream at other times. I'd be a
> lot more likely to break the mainline through an unexpected
> "commit" side effect than through an accidental "push". So, I
> disagree with the advice that users should use a bound branch if
> they want "push" and "pull" to use the same URL.
I don't think that that advice was given (using bound branches is not
the same as having push and pull use the same url). If you want to use
push and pull, certainly given them the same url.
You can even do:
bzr branch foo bar
bzr push :pull
to trivally set it up.
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080730/5835045c/attachment.pgp
More information about the bazaar