Discussed changes

Aaron Bentley aaron.bentley at utoronto.ca
Wed Aug 17 19:27:42 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John A Meinel wrote:

>>Modify register_command to always replace the previous command, and not
>>gripe.
>>1. scan bzrlib/commands
>>2. scan /usr/lib/python2.4/site-packages/bzrplugins for system-wide plugins
>>3. scan ~/.bzr.conf/plugins

> My suggestion is to have BZR_PLUGIN_PATH act more like the real path,
> where the first entry found is used, and all others are ignored.
...
> I was realizing that if you use plugins to implement hooks, you might
> want multiple levels.

My suggestion above was to support both these goals.
1. Having the last command win and doing it in reverse order gives the
same precedence as having the first command win and doing it in forward
order.

2. By registering all commands, not just the first one found, we have
the opportunity to determine the previously-registered command, so that
we can wrap it.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDA4Ge0F+nu1YWqI0RAo3SAJ9GODj2OzHa1bGWcM/UPCIKcR90rACfXlDL
X3OTrlZk5kq4TkK4UOWzzXU=
=AXsq
-----END PGP SIGNATURE-----




More information about the bazaar mailing list