RFC: centralise registries

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Apr 15 07:12:52 BST 2009


>>>>> "robert" == Robert Collins <robert.collins at canonical.com> writes:

<snip/>

    robert> registries are not a problem; registries that are
    robert> only loaded to allow the registry to be registered
    robert> with are. E.g. a registry for 'diff' is a time waste
    robert> except when diff code is invoked.

Then create bzrlib/selftest.py, put the registry there, and lazy
load bzrlib.tests there ?

That seems to be the less of 3 or 4 evils :-/

That will at least address your initial concern (if I remember
correctly): avoid loading the tests only to register a test suite
decorator from a plugin.

          Vincent



More information about the bazaar mailing list