'push' should default to 'pull' URL
Bug #249546 reported by
Selene ToyKeeper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
When no 'push' URL is specified or remembered, it should default to the parent branch URL. Otherwise, this happens:
% bzr branch bzr+ssh:
Branched 121 revision(s).
% cd trunk
% (hack, hack)
% bzr push
bzr: ERROR: No push location known or specified.
This sort of work flow is common (push/pull instead of send/merge), and a default push URL would make things a bit easier.
To post a comment you must log in.
Hi,
Thanks for taking the time to report this bug.
I've marked this bug as "Won't Fix", please allow me to explain why.
When you make a new branch of a project there are two things you would
normally be doing. The first is the one that you are talking about, where
you are getting a local copy of the branch so that you can work on it, and
when you have done that you want to push your changes back, so the behaviour
you request would be correct.
The second reason why you may be getting a branch is to actually branch, i.e.
start a new line of development, for a new feature or similar. In these cases you
may still want to publish your work before it is ready for integration in to the
original branch. If we implemented the behaviour that you ask for then a simple
"bzr push" would push to the original branch, which you would not want in that
case.
There is no way for bzr to tell these two situations apart, so it asks for you to
be explicit by providing a URL.
Recently Aaron wrote the code to allow you to use shorthand for various known
URLs for a branch, which would mean that you could run
bzr push :parent
the first time, which is less typing.
If there are any other things that you think would improve this situation
then please don't hesitate to suggest them.
Thanks,
James