/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: Jelmer Vernooij
  • Date: 2019-01-03 02:35:46 UTC
  • mfrom: (0.431.67 trunk)
  • mto: This revision was merged to the branch mainline in revision 7239.
  • Revision ID: jelmer@jelmer.uk-20190103023546-pryb5dotaw5ecbbt
Merge lp:brz-propose.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        self.url = url
44
44
 
45
45
 
46
 
class NoMergeProposal(errors.BzrError):
47
 
 
48
 
    _fmt = "No merge proposal exists."
49
 
 
50
 
    def __init__(self):
51
 
        errors.BzrError.__init__(self)
52
 
 
53
 
 
54
46
class UnsupportedHoster(errors.BzrError):
55
47
 
56
48
    _fmt = "No supported hoster for %(branch)s."
200
192
        """
201
193
        raise NotImplementedError(self.get_proposer)
202
194
 
203
 
    def get_proposal(self, source_branch, target_branch):
 
195
    def iter_proposals(self, source_branch, target_branch):
204
196
        """Get a merge proposal for a specified branch tuple.
205
197
 
206
198
        :param source_branch: Source branch
207
199
        :param target_branch: Target branch
208
 
        :raise NoMergeProposal: if no merge proposal can be found
209
 
        :return: A MergeProposal object
 
200
        :return: Iterate over MergeProposal object
210
201
        """
211
 
        raise NotImplementedError(self.get_proposal)
 
202
        raise NotImplementedError(self.iter_proposals)
212
203
 
213
204
    def hosts(self, branch):
214
205
        """Return true if this hoster hosts given branch."""