thoughts on a bzrrc file

Jamie Wilkinson jaq at spacepants.org
Thu May 19 09:03:38 BST 2005


This one time, at band camp, Magnus Therning wrote:
>On Thu, May 19, 2005 at 05:27:51PM +1000, Benno wrote:
>>On Thu May 19, 2005 at 17:12:46 +1000, Martin Pool wrote:
>[..]
>>>----------------
>>># my bzr config file
>>>
>>>diff_program = diff -uw %s %s
>>>email = Martin Pool <mbp at sourcefrog.net>
>>>editor = emacsclient %s
>>>
>>
>>How about the option of having a ~/.bzrrc.py file for those that want
>>to script settings. I think my previous example had setting a different
>>email based on the project. E.g:
>>
>>if (project_is_about_work):
>>  email = me at work
>>else: 
>>  email = me at home
>
>Is there some other (non-programming) way of adding per-project
>settings?

ConfigParser does .ini sections, e.g.:

[default]
email = jaq at spacepants

[jamie at elsewhere--2004]
email = jamie at example.com

for a config that lets you have a default and then per-repo or per-branch
settings.




More information about the bazaar mailing list