factoring out bzrlib.commands

Martin Pool mbp at canonical.com
Wed Dec 17 06:28:33 GMT 2008


On 16 Dec 2008, Barry Warsaw <barry at canonical.com> wrote:
> bzr has a nice architecture for defining new commands, including  
> discovery, printing, getting help, defining arguments and so on.  Has  
> any thought been given into factoring this nice little bit of bzr out  
> into a separate package so that other programs could use it?  How tied  
> to the rest of bzr is it?

It probably has some amount of accidental coupling, but no essential
reason why it should be coupled.  If you'd like to separate it that
would be nice.

I think jml might have been doing something similar for selftest?

A good start might be just to move the Command base classes into a
separate file from our specific commands.

-- 
Martin



More information about the bazaar mailing list