bad appendpath policies are ugly

Bug #557833 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

 affects bzr
 status confirmed
 importance medium
 done

Setting 'push_location:policy = badvalue' generates:
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/config.py", line
733, in _get_user_option
    value = source()._get_user_option(option_name)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/config.py", line
409, in _get_user_option
    policy = self._get_option_policy(section, option_name)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/config.py", line
602, in _get_option_policy
    return _policy_value[policy_name]
KeyError: u'badvalue'

We would be better of listing the allowed values at this point.

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