~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/writing_a_plugin.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-03 21:16:53 UTC
  • mfrom: (3777.6.7 bzr.plugins)
  • Revision ID: pqm@pqm.ubuntu.com-20081103211653-vyode1g8p1lfsuzy
(Marius Kruger) Give a reasonable version string for plugins with
        invalid version_info values.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
``bzrlib.commands.register_command(cmd_foo)``.  You must register the
23
23
command when your file is imported, otherwise bzr will not see it.
24
24
 
 
25
Specifying a plugin version number
 
26
----------------------------------
 
27
Simply define ``version_info`` to be a tuple defining the current version
 
28
number of your plugin. eg.
 
29
``version_info = (0, 9, 0)``
 
30
``version_info = (0, 9, 0, 'dev', 0)``
 
31
 
25
32
Plugin searching rules
26
33
----------------------
27
34