WorkingTree.wt.get_config_stack and BzrDirConfig
aaron at aaronbentley.com
Thu Feb 2 20:21:23 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
I've actually just started getting familiar with config stacks this
week, fixing a bug in bzr-pqm caused by the cutover.
I see that you've added a way of getting a config from a WorkingTree,
with hints that per-working-tree configs might be supported in the future.
I think it's worth considering using the per-bzrdir config for this,
rather than implementing something that only works for working trees.
The BzrDirConfig is pretty obscure right now, because we only use it
to configure the default stacking location. We needed a way to
configure a location that allowed remote configuration (so
locations.conf and bazaar.conf were out), but that location could have
no branch or repository (so branch.conf was out).
But it would be possible to use it for branches, trees and
repositories, too, since they all have control directories. And I
think that collecting all that configuration in one place would be a
The only thing is that this is a behaviour change, so it could require
format changes. But adding a per-working-tree config would also be a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the bazaar