With pipelines I cannot set push_location and public_branch generally
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Vincent Ladeuil |
Bug Description
I have a directory layout like so:
~/Launchpad
/launchpad <-- repo
/a-branch
/b-branch
/another-
I sometimes use pipelines, and to make push locations just work I add
settings like the following to locations.conf, one block per project:
[/home/
push_location = bzr+ssh:
push_
public_branch = bzr+ssh:
public_
It would be convenient if I could do this just once instead of once
for each project. For example, it might be interesting if it were
possible to name parts of the pattern in the section heading:
[/home/
push_location = bzr+ssh:
push_
public_branch = bzr+ssh:
public_
Perhaps what I'm doing is unnecessary, or silly. I've fumbled along
for a few years slowly accreting stuff in locations.conf, so perhaps
there's a better way.
Related branches
- Martin Pool: Approve
- Martin Packman (community): Approve
-
Diff: 130 lines (+63/-8)5 files modifiedbzrlib/config.py (+2/-1)
bzrlib/help_topics/en/configuration.txt (+15/-0)
bzrlib/tests/test_config.py (+32/-0)
doc/developers/configuration.txt (+6/-4)
doc/en/release-notes/bzr-2.5.txt (+8/-3)
Changed in bzr: | |
importance: | High → Medium |
Changed in bzr: | |
assignee: | nobody → Vincent Ladeuil (vila) |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.5b4 |
status: | In Progress → Fix Released |
First of all, keep in mind that locations.conf override any branch.conf settings, so if you set a push_location in locations.conf and branch.conf, the later will always be ignored.
To work around this, I use the following trick:
locations: vila/src/ bzr/bugs]
[/home/
mypush = lp:~vila/bzr
mypush:policy = appendpath
And then use 'bzr push `bzr config mypush`' when I create the branch on lp.
Not ideal but it let me control the push_location for each branch.
There is a work in progress to allow:
1 - more freedom in option expansion (bug #832013) vila/src/ bzr/bugs] username} /bzr/{nick}
[/home/
mypush = lp:~{launchpad_
in locations.conf.
2 - a way to specify *default* values for config options by path (bug #832046)