29
29
create_signatures=always|never|when-required(default)
30
30
gpg_signing_command=name-of-program
31
31
log_format=name-of-format
32
validate_signatures_in_log=true|false(default)
33
acceptable_keys=pattern1,pattern2
33
35
in locations.conf, you specify the url of a branch and options for it.
34
36
Wildcards may be used - * and ? as normal in shell completion. Options
40
42
check_signatures= as above
41
43
create_signatures= as above.
44
validate_signatures_in_log=as above
45
acceptable_keys=as above
43
47
explanation of options
44
48
----------------------
45
49
editor - this option sets the pop up editor to use during commits.
46
50
email - this option sets the user id bzr will use when committing.
47
check_signatures - this option controls whether bzr will require good gpg
51
check_signatures - this option will control whether bzr will require good gpg
48
52
signatures, ignore them, or check them if they are
53
present. Currently it is unused except that check_signatures
54
turns on create_signatures.
50
55
create_signatures - this option controls whether bzr will always create
51
gpg signatures, never create them, or create them if the
52
branch is configured to require them.
56
gpg signatures or not on commits. There is an unused
57
option which in future is expected to work if
58
branch settings require signatures.
53
59
log_format - this option sets the default log format. Possible values are
54
60
long, short, line, or a plugin can register new formats.
61
validate_signatures_in_log - show GPG signature validity in log output
62
acceptable_keys - comma separated list of key patterns acceptable for
63
verify-signatures command
56
65
In bazaar.conf you can also define aliases in the ALIASES sections, example
427
436
"""See log_format()."""
439
def validate_signatures_in_log(self):
440
"""Show GPG signature validity in log"""
441
result = self._validate_signatures_in_log()
448
def _validate_signatures_in_log(self):
449
"""See validate_signatures_in_log()."""
452
def acceptable_keys(self):
453
"""Comma separated list of key patterns acceptable to
454
verify-signatures command"""
455
result = self._acceptable_keys()
458
def _acceptable_keys(self):
459
"""See acceptable_keys()."""
430
462
def post_commit(self):
431
463
"""An ordered list of python functions to call.
830
862
"""See Config.log_format."""
831
863
return self._get_user_option('log_format')
865
def _validate_signatures_in_log(self):
866
"""See Config.validate_signatures_in_log."""
867
return self._get_user_option('validate_signatures_in_log')
869
def _acceptable_keys(self):
870
"""See Config.acceptable_keys."""
871
return self._get_user_option('acceptable_keys')
833
873
def _post_commit(self):
834
874
"""See Config.post_commit."""
835
875
return self._get_user_option('post_commit')
1410
1450
"""See Config.log_format."""
1411
1451
return self._get_best_value('_log_format')
1453
def _validate_signatures_in_log(self):
1454
"""See Config.validate_signatures_in_log."""
1455
return self._get_best_value('_validate_signatures_in_log')
1457
def _acceptable_keys(self):
1458
"""See Config.acceptable_keys."""
1459
return self._get_best_value('_acceptable_keys')
1414
1462
def ensure_config_dir_exists(path=None):
1415
1463
"""Make sure a configuration directory exists.