aaron.bentley at utoronto.ca
Wed Aug 17 19:27:42 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
John A Meinel wrote:
>>Modify register_command to always replace the previous command, and not
>>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
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar