running 'bzr selftest' on windows

Jelmer Vernooij jelmer at samba.org
Sat Feb 27 15:16:34 GMT 2010


On Sat, 2010-02-27 at 16:00 +0100, Vincent Ladeuil wrote:
> >>>>> "Matt" == Matt Nordhoff <mnordhoff at mattnordhoff.com> writes:
>     Matt> test_prefix_alias_registry.register('bd', 'bzrlib.doc')
>     Matt> test_prefix_alias_registry.register('bu', 'bzrlib.utils')
>     Matt> test_prefix_alias_registry.register('bt', 'bzrlib.tests')
>     Matt> test_prefix_alias_registry.register('bb', 'bzrlib.tests.blackbox')
>     Matt> test_prefix_alias_registry.register('bp', 'bzrlib.plugins')
> 
> A comment above this line says:
> 
>   # Obvious highest levels prefixes, feel free to add your own via a plugin
> 
> So you can do:
> 
>   bzrlib.tests.test_prefix_alias_registry.register('grep', 'bzrlib.plugins.grep')
> 
> And use:
> 
>   bzr selftest -s grep
> 
> To avoid excessive pollution of the name space, you may do that in
> an another dedicated plugin though.
Is there some way to do this without forcing the import of bzrlib.tests
in the plugins' __init__? I'm quite keen on using these shortcuts, but
I'd rather not slow down the plugins.

CHeers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20100227/35a004ab/attachment.pgp 


More information about the bazaar mailing list