/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 breezy/plugins/propose/propose.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-09-21 14:54:21 UTC
  • mfrom: (7381.5.5 reopen-mp)
  • Revision ID: breezy.the.bot@gmail.com-20190921145421-mabvx568b7icpenq
Add functions for reopening merge proposals and checking if they are closed.

Merged from https://code.launchpad.net/~jelmer/brz/reopen-mp/+merge/371773

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        self.branch = branch
54
54
 
55
55
 
 
56
class ReopenFailed(errors.BzrError):
 
57
 
 
58
    _fmt = "Reopening the merge proposal failed: %(error)s."
 
59
 
 
60
 
56
61
class ProposeMergeHooks(hooks.Hooks):
57
62
    """Hooks for proposing a merge on Launchpad."""
58
63
 
135
140
        """Check whether this merge proposal has been merged."""
136
141
        raise NotImplementedError(self.is_merged)
137
142
 
 
143
    def is_closed(self):
 
144
        """Check whether this merge proposal is closed
 
145
 
 
146
        This can either mean that it is merged or rejected.
 
147
        """
 
148
        raise NotImplementedError(self.is_closed)
 
149
 
138
150
    def merge(self, commit_message=None):
139
151
        """Merge this merge proposal."""
140
152
        raise NotImplementedError(self.merge)