~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2010-04-26 13:52:13 UTC
  • mfrom: (5184.1.1 various)
  • mto: This revision was merged to the branch mainline in revision 5185.
  • Revision ID: v.ladeuil+lp@free.fr-20100426135213-a1m8r6tq1zv048pg
Various test cleanups and copyright updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
20
20
 
21
21
from bzrlib import (
22
22
    errors,
 
23
    hooks,
23
24
    msgeditor,
24
25
)
25
 
from bzrlib.hooks import HookPoint, Hooks
26
26
from bzrlib.plugins.launchpad import (
27
27
    lp_api,
28
28
    lp_registration,
31
31
from lazr.restfulclient import errors as restful_errors
32
32
 
33
33
 
34
 
class ProposeMergeHooks(Hooks):
 
34
class ProposeMergeHooks(hooks.Hooks):
35
35
    """Hooks for proposing a merge on Launchpad."""
36
36
 
37
37
    def __init__(self):
38
 
        Hooks.__init__(self)
 
38
        hooks.Hooks.__init__(self)
39
39
        self.create_hook(
40
 
            HookPoint(
 
40
            hooks.HookPoint(
41
41
                'get_prerequisite',
42
42
                "Return the prerequisite branch for proposing as merge.",
43
43
                (2, 1), None),
44
44
        )
45
45
        self.create_hook(
46
 
            HookPoint(
 
46
            hooks.HookPoint(
47
47
                'merge_proposal_body',
48
48
                "Return an initial body for the merge proposal message.",
49
49
                (2, 1), None),