needs a way to specify default values for config options by path

Bug #832046 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Vincent Ladeuil

Bug Description

locations.conf provides a way to override options specified in branch.conf even if most people use it for default values (without realizing they can't define options in branch.conf after that).

Tags: config

Related branches

Vincent Ladeuil (vila)
tags: added: config
Revision history for this message
Martin Pool (mbp) wrote :

Possibly the simplest way to fix this is to just give locations.conf lower priority than branch.conf? I think there may be another bug asking for that, or at least it would fix some other bugs about the masking.

- migration may be hard
- perhaps there are cases where you actually do want locations.conf to have higher priority?

Revision history for this message
Vincent Ladeuil (vila) wrote :

> - perhaps there are cases where you actually do want locations.conf to have higher priority?

Given that locations.conf is documented as *overriding* values in branch.conf I assume there are people relying on this behaviour. I occasionally relies on it myself.

This bug is more about the misunderstandings about how sections are matched and ordered in locations.conf:

   [/dir]
   foo= 12
   [/dir/subdir]
   foo = 42

has exactly the same semantics as:

   [/dir/subdir]
   foo = 42
   [/dir]
   foo= 12

in locations.conf (see config.py and associated tests for other confusing use cases).

Vincent Ladeuil (vila)
Changed in bzr:
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.5b5
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.