Part of bzrlib.config View In Hierarchy
Known subclasses: bzrlib.config.BranchConfig, bzrlib.config.IniBasedConfig, bzrlib.tests.test_config.InstrumentedConfig
Method | __init__ | Undocumented |
Method | config_id | Returns a unique ID for the config. |
Method | get_editor | Get the users pop up editor. |
Method | get_change_editor | Undocumented |
Method | get_mail_client | Get a mail client to use |
Method | expand_options | Expand option references in the string in the configuration context. |
Method | get_user_option | Get a generic option - no special process, no default. |
Method | get_user_option_as_bool | Get a generic option as a boolean. |
Method | get_user_option_as_list | Get a generic option as a list - no special process, no default. |
Method | get_user_option_as_int_from_SI | Get a generic option from a human readable size in SI units, e.g 10MB |
Method | gpg_signing_command | What program should be used to sign signatures? |
Method | log_format | What log format should be used |
Method | validate_signatures_in_log | Show GPG signature validity in log |
Method | acceptable_keys | Comma separated list of key patterns acceptable to |
Method | post_commit | An ordered list of python functions to call. |
Method | user_email | Return just the email component of a username. |
Method | username | Return email-style username. |
Method | ensure_username | Raise errors.NoWhoami if username is not set. |
Method | signature_checking | What is the current policy for signature checking?. |
Method | signing_policy | What is the current policy for signature checking?. |
Method | signature_needed | Is a signature needed when committing ?. |
Method | gpg_signing_key | GPG user-id to sign commits |
Method | get_alias | Undocumented |
Method | get_nickname | Undocumented |
Method | get_bzr_remote_path | Undocumented |
Method | suppress_warning | Should the warning be suppressed or emitted. |
Method | get_merge_tools | Undocumented |
Method | find_merge_tool | Undocumented |
Method | _get_signature_checking | Template method to override signature checking policy. |
Method | _get_signing_policy | Template method to override signature creation policy. |
Method | _expand_options_in_list | Expand options in a list of strings in the configuration context. |
Method | _expand_options_in_string | Expand options in the string in the configuration context. |
Method | _expand_option | Undocumented |
Method | _get_user_option | Template method to provide a user option. |
Method | _gpg_signing_command | See gpg_signing_command(). |
Method | _log_format | See log_format(). |
Method | _validate_signatures_in_log | See validate_signatures_in_log(). |
Method | _acceptable_keys | See acceptable_keys(). |
Method | _post_commit | See Config.post_commit. |
Method | _get_alias | Undocumented |
Method | _get_nickname | Undocumented |
Parameters | string | The string containing option to expand. |
env | An option dict defining additional configuration options or overriding existing ones. | |
Returns | The expanded string. |
Parameters | slist | A list of strings. |
env | An option dict defining additional configuration options or overriding existing ones. | |
_ref_stack | Private list containing the options being expanded to detect loops. | |
Returns | The flatten list of expanded strings. |
Parameters | string | The string to be expanded. |
env | An option dict defining additional configuration options or overriding existing ones. | |
_ref_stack | Private list containing the options being expanded to detect loops. | |
Returns | The expanded string. |
Parameters | option_name | The queried option. |
expand | Whether options references should be expanded. | |
Returns | The value of the option. |
Get a generic option as a boolean. :param expand: Allow expanding references to other config values. :param default: Default value if nothing is configured :return None if the option doesn't exist or its value can't be interpreted as a boolean. Returns True or False otherwise.
Get a generic option as a list - no special process, no default.
Get a generic option from a human readable size in SI units, e.g 10MB
Accepted suffixes are K,M,G. It is case-insensitive and may be followed by a trailing b (i.e. Kb, MB). This is intended to be practical and not pedantic.
Each function takes branch, rev_id as parameters.
Something similar to 'Martin Pool <mbp@sourcefrog.net>'
$BZR_EMAIL can be set to override this, then the concrete policy type is checked, and finally $EMAIL is examined. If no username can be found, errors.NoWhoami exception is raised.
This method relies on the username() function raising the error.