Set default push branch

Asked by Javier Collado on 2011-01-26

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:
2011-01-27
Last query:
2011-01-27
Last reply:
2011-01-27

This question was reopened

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

Thanks Martin Pool, that solved my question.