"bzr config" ignores policy:appendpath

Bug #671050 reported by John A Meinel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Vincent Ladeuil

Bug Description

The new "bzr config" command is pretty handy, but it seems to be missing policy: handling.

Specifically, I have:

[/path/to/dev]
push_location = lp:~jameinel
push_location:policy = appendpath

[/path/to/dev/bzr]
push_location = lp:~jameinel/bzr
push_location:policy = appendpath

And it works correctly for "bzr push", and "bzr info" gives:
$ bzr info
...
    push branch: lp:///~jameinel/bzr/2.3-gcb-peak-mem
...

However "bzr config push_location":
$ bzr config push_location
locations:
  push_location = lp:///~jameinel/bzr
  push_location = lp:~jameinel

Tags: config

Related branches

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

That's weird, it doesn't display anything about push_location:appendpath ?
I see no reason to display lp:///~jameinel/bzr instead of lp:~jameinel either, wrong copy/paste ?

Now, for locations.conf where several sections mention the same option, the section name needs to be displayed...

I was hoping to leave that un-addressed for a while, but I forgot about this case, so the section name should be displayed too.

But I think the right display for your case should be:

$ bzr config --all push_location
locations:
 [/path/to/dev/bzr]
  push_location = lp:~jameinel/bzr
  push_location:appendpath = True
 [/path/to/dev]
  push_location = lp:~jameinel
  push_location:appendpath = True

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

Meh, of course I meant:

$ bzr config --all push_location
locations:
 [/path/to/dev/bzr]
  push_location = lp:~jameinel/bzr
  push_location:policy = appendpath
 [/path/to/dev]
  push_location = lp:~jameinel
  push_location:policy = appendpath

Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.3b4
Vincent Ladeuil (vila)
Changed in bzr:
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.