Set default push branch

Asked by Javier Collado

Is it possible to set the default push branch without actually pushing to that branch?

If not, is it safe to modify .bzr/branch/branch.conf directly and add a line such as the following one?
parent_location = bzr+ssh://bazaar.launchpad.net/~<team>/<project>/<branch_name>/

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pool
Solved:
Last query:
Last reply:
Revision history for this message
Best Martin Pool (mbp) said :
#1

> If not, is it safe to modify .bzr/branch/branch.conf directly and add a line such as the following one?
> parent_location = bzr+ssh://bazaar.launchpad.net/~<team>/<project>/<branch_name>/

Yes, that's fine.

You can also use something like this in locations.conf:

[/home/mbp/bzr-gtk]
push_location = bzr+ssh://bazaar.launchpad.net/~mbp/bzr-gtk
push_location:policy = appendpath

Revision history for this message
Javier Collado (javier.collado) said :
#2

Thanks Martin Pool, that solved my question.