>>>>> Gary van der Merwe <email address hidden> writes:
> On 11/11/2010 20:19, Vincent Ladeuil wrote:
>> How about using option names like 'bzr.mergetool.bcompare'
>> 'bzr.mergetool.kdiff3' and so on ? Then we could query the config object
>> for option whose names start with 'bzr.mergetool'. Would this address
>> some of your concerns ?
> I was thinking it may be better to have the config formated like this:
> Similar to [ALIASES], bzr-bookmark's [BOOKMARKS], qbzr's [EXTDIFF]. But
> unfortunately bzr config does not provide access to view/change these.
> It would nice if it could.
bzr config *intentionally* (so far) doesn't provide access to sections
because I thought we had to chose between using section names as path
(like in locations.conf) or arbitrary strings (like in bazaar.conf).
And I still think that we should promote the use of paths in all
configuration files, for compatibility we could still allows ALIASES and
BOOKMARKS but I think this kind of section can be embedded in the option
name instead. So your example above can *today* be written:
>>>>> Gary van der Merwe <email address hidden> writes:
> On 11/11/2010 20:19, Vincent Ladeuil wrote: bcompare' kdiff3' and so on ? Then we could query the config object
>> How about using option names like 'bzr.mergetool.
>> 'bzr.mergetool.
>> for option whose names start with 'bzr.mergetool'. Would this address
>> some of your concerns ?
> I was thinking it may be better to have the config formated like this:
> [DEFAULT]
> default_mergetool = meld
> [MERGETOOLS]
> meld = /usr/bin/meld %t %r %o
> kdiff3 = ....
> Similar to [ALIASES], bzr-bookmark's [BOOKMARKS], qbzr's [EXTDIFF]. But
> unfortunately bzr config does not provide access to view/change these.
> It would nice if it could.
bzr config *intentionally* (so far) doesn't provide access to sections
because I thought we had to chose between using section names as path
(like in locations.conf) or arbitrary strings (like in bazaar.conf).
And I still think that we should promote the use of paths in all
configuration files, for compatibility we could still allows ALIASES and
BOOKMARKS but I think this kind of section can be embedded in the option
name instead. So your example above can *today* be written:
bzr.mergetool. default = meld kdiff3 = ...
bzr.mergetool.meld = /usr/bin/meld %t %r %o
bzr.mergetool.
and doing so allows *today* to have different definitions in
bazaar.conf, locations.conf and branch.conf.
Plugins would use their own dedicated name space:
qbzr.log. window_ size = ... window_ size = ...
qbzr.annotate.