~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 01:23:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2275.
  • Revision ID: mbp@sourcefrog.net-20070126012338-4de0rkq7p5diyv47
Start adding indirection transport

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
"""Launchpad.net branch registration plugin for bzr
18
 
 
19
 
This adds commands that tell launchpad about newly-created branches, etc.
 
17
"""Launchpad.net integration plugin for Bazaar
 
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
20
25
 
21
26
To install this file, put the 'bzr_lp' directory, or a symlink to it,
22
27
in your ~/.bazaar/plugins/ directory.
28
33
# see http://bazaar-vcs.org/Specs/BranchRegistrationTool
29
34
 
30
35
from bzrlib.commands import Command, Option, register_command
 
36
from bzrlib.transport import register_lazy_transport
31
37
 
32
38
 
33
39
 
114
120
        print 'Branch registered.'
115
121
 
116
122
register_command(cmd_register_branch)
 
123
register_lazy_transport(
 
124
    'lp://',
 
125
    'bzrlib.plugins.launchpad.lp_indirect',
 
126
    'LaunchpadIndirectTransport')
117
127
 
118
128
def test_suite():
119
129
    """Called by bzrlib to fetch tests for this plugin"""