config doesn't provide a --section parameter

Bug #725234 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

When used in a lightweight checkout, "bzr config --scope locations" uses the checkout's location, not the branch's location, to generate the config entry. This seems wrong, since virtually all supported settings configure branches, not working trees. The only exception that comes to mind is bzrtools' cbranch_target setting.

John A Meinel (jameinel)
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Vincent Ladeuil (vila) wrote :

Depending on the option, the user may want to decide in which section of locations.conf (or any other config file with sections) he wants the option to be defined in.

The plan is to provide a '--section' parameter once the sections themselves are clearly defined (most use cases use paths as section identifiers but regexps or user names or host names or whatever have also been mentioned).

summary: - config with locations scope doesn't support lightweight checkouts
+ config doesn't provide a --section parameter
tags: added: config
Vincent Ladeuil (vila)
Changed in bzr:
assignee: nobody → Vincent Ladeuil (vila)
Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 725234] Re: config doesn't provide a --section parameter

I wonder if the user really directly wants to ask for a section.
Perhaps more likely is 'config --location PATH_GLOB ...'

Certainly being able to get at the functionality somehow would be good.

Martin

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

My assumption is that a section is not necessarily a location. A location is (at least in locations.conf) a glob that could match *several* sections and what is needed here is to identify *one* section without ambiguity.

And there can be other usages for section names than paths/locations.

Revision history for this message
Martin Pool (mbp) wrote :

On 4 April 2011 18:11, Vincent Ladeuil <email address hidden> wrote:
> My assumption is that a section is not necessarily a location. A
> location is (at least in locations.conf) a glob that could match
> *several* sections and what is needed here is to identify *one* section
> without ambiguity.
>
> And there can be other usages for section names than paths/locations.

I agree with all that. I think, perhaps separately from this bug, it
may be useful for the user to say "for everything under ~/work, set
foo=bar" without so much getting into that being one section in the
locations config.

Vincent Ladeuil (vila)
Changed in bzr:
assignee: Vincent Ladeuil (vila) → nobody
Revision history for this message
Vincent Ladeuil (vila) wrote :

> I agree with all that. I think, perhaps separately from this bug, it
> may be useful for the user to say "for everything under ~/work, set
> foo=bar" without so much getting into that being one section in the
> locations config.

'bzr config -d ~/work --scope locations foo=bar' works with bzr @ revno 6278 by adding:

   [/home/vila/work]
  foo = bar

At the end of locations.conf if the section doesn't exist yet.

This bug still applies though.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.