thoughts on a bzrrc file

Lalo Martins lalo at exoweb.net
Thu May 19 10:59:30 BST 2005


On Thu, 2005-05-19 at 09:15 +0100, Magnus Therning wrote: 
> Would the following be possible using ConfigParser?
> (If I remember correctly it doesn't have built-in support for
> sub-levels, but adding one level shouldn't be difficult.)
> 
> [bzr]
> email = Magnus Therning <magnus at therning.org>
> diff_program = diff -uw %s %s
> 
> [bzr/projectA]
> email = Magnus Therning <mtherning at sourceforge.net>
> 
> Then it shouldn't be too difficult to extend it to external commands as
> well:
> 
> [my_ext_cmd]
> foo = foo
> bar = bar
> 
> [my_ext_cmd/projectA]
> foo = qux

I'd rather have:
[default] 
email = Magnus Therning <magnus at therning.org>
diff_program = diff -uw %s %s
my_ext_cmd:foo = foo
my_ext_cmd:bar = bar

[projectA]
email = Magnus Therning <mtherning at sourceforge.net>
my_ext_cmd:foo = qux

although "default" has to be instead something that's impossible to be a
project spec.

best,
                                               Lalo Martins
--
      My personal formula for efficiency is to arrange
     problems in such a way that they solve each other.
--
http://www.exoweb.net/                  mailto:lalo at exoweb.net
GNU: never give up freedom                 http://www.gnu.org/






More information about the bazaar mailing list