Hi,
I'm having a problem with writing my Bazaar plugin.
I've been trying a few different things, and this is the current state of my file:
''' Testing Bzr plugins '''
from bzrlib.commands import Command, register_command
version_info = (0,0,1, 'dev')
class cmd_test_foo(Command):
''' Testing is painful. '''
def run(self):
print "hi"
register_command(cmd_test_foo)
Here's what happens when I try to execute my command:
$bzr test-foo
hi
bzr: ERROR: unknown command "test-foo"
So that's really weird - it's obviously running my command, but tells me it's unknown?
Are there any good sources for plugin examples? I've looked at the builtins.py
as suggested here but nothing there seemed to help.