[MERGE] Support for the decorate argument also in CommandRegistry.register_lazy

Lukáš Lalinský lalinsky at gmail.com
Fri Dec 19 10:45:23 GMT 2008


When trying to overwrite an existing command using register_lazy it
throws a KeyError. This patch adds a 'decorate' argument to
CommandRegistry.register_lazy with equivalent functionality as in
CommandRegistry.register. There is a problem with the tests though,
that they print the error messages about the new command not being
registered to the console. I don't know how to get rid of it
(CommandRegistry.register(..., decorate=True) is not tested, so I
couldn't just use that as an example).

-- 
Lukas Lalinsky
lalinsky at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decorate.diff
Type: text/x-patch
Size: 10847 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081219/a9bfb927/attachment.bin 


More information about the bazaar mailing list