/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin von Gagern
  • Date: 2010-05-02 20:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 5203.
  • Revision ID: martin.vgagern@gmx.net-20100502201025-ssuldxi8i98desfh
Added blackbox tests for --directory option.

Added tests for the new --directory (-d) option to these commands: added,
annotate, bind, cat, clean-tree, deleted, export, ignore, ignored,
lookup-revision, ls, modified, nick, re-sign, unbind, unknowns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010 Canonical Ltd
 
1
# Copyright (C) 2009, 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,
24
23
    msgeditor,
25
24
)
 
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.Hooks):
 
34
class ProposeMergeHooks(Hooks):
35
35
    """Hooks for proposing a merge on Launchpad."""
36
36
 
37
37
    def __init__(self):
38
 
        hooks.Hooks.__init__(self)
 
38
        Hooks.__init__(self)
39
39
        self.create_hook(
40
 
            hooks.HookPoint(
 
40
            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
 
            hooks.HookPoint(
 
46
            HookPoint(
47
47
                'merge_proposal_body',
48
48
                "Return an initial body for the merge proposal message.",
49
49
                (2, 1), None),