~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/__init__.py

  • Committer: Martin Pool
  • Date: 2007-01-26 04:44:10 UTC
  • mto: This revision was merged to the branch mainline in revision 2275.
  • Revision ID: mbp@sourcefrog.net-20070126044410-x7dnlcdjbitbb3c2
Documentation under 'help launchpad'

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Launchpad.net integration plugin for Bazaar
18
18
 
19
 
This adds two features:
20
 
 
21
 
  * A register-branch command that tells launchpad about the existence
22
 
    of a branch
23
 
 
24
 
  * A lp: transport that uses Launchpad as a directory to find a branch
25
 
 
26
19
To install this file, put the 'bzr_lp' directory, or a symlink to it,
27
20
in your ~/.bazaar/plugins/ directory.
28
21
"""
34
27
 
35
28
from bzrlib.commands import Command, Option, register_command
36
29
from bzrlib.transport import register_lazy_transport
37
 
 
 
30
from bzrlib.help_topics import topic_registry
38
31
 
39
32
 
40
33
class cmd_register_branch(Command):
142
135
    for m in [test_register, test_lp_indirect]:
143
136
        suite.addTests(loader.loadTestsFromModule(m))
144
137
    return suite
 
138
 
 
139
_launchpad_help = """Integration with Launchpad.net
 
140
 
 
141
Launchpad.net provides free Bazaar branch hosting with integrated bug and
 
142
specification tracking.
 
143
 
 
144
The bzr client (through the plugin called 'launchpad') has two special
 
145
features to communicate with Launchpad:
 
146
 
 
147
    * The register-branch command tells launchpad about the url of a 
 
148
      public branch.  Launchpad will then mirror the branch, display
 
149
      its contents and allow it to be attached to bugs and other 
 
150
      objects.
 
151
 
 
152
    * The 'lp:' transport uses Launchpad as a directory service: 
 
153
      for example 'lp:bzr' and 'lp:python' refer to the main branches of the
 
154
      relevant projects and may be branched, logged, etc.  (Only read access
 
155
      is supported at present.)
 
156
 
 
157
For more information see http://help.launchpad.net/
 
158
"""
 
159
topic_registry.register('launchpad',
 
160
    _launchpad_help,
 
161
    'Using Bazaar with Launchpad.net')