/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-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        """Set the description of the merge proposal."""
112
112
        raise NotImplementedError(self.set_description)
113
113
 
 
114
    def get_commit_message(self):
 
115
        """Get the proposed commit message."""
 
116
        raise NotImplementedError(self.get_commit_message)
 
117
 
 
118
    def set_commit_message(self, commit_message):
 
119
        """Set the propose commit message."""
 
120
        raise NotImplementedError(self.set_commit_message)
 
121
 
114
122
    def get_source_branch_url(self):
115
123
        """Return the source branch."""
116
124
        raise NotImplementedError(self.get_source_branch_url)
154
162
        raise NotImplementedError(self.get_infotext)
155
163
 
156
164
    def create_proposal(self, description, reviewers=None, labels=None,
157
 
                        prerequisite_branch=None):
 
165
                        prerequisite_branch=None, commit_message=None):
158
166
        """Create a proposal to merge a branch for merging.
159
167
 
160
168
        :param description: Description for the merge proposal
161
169
        :param reviewers: Optional list of people to ask reviews from
162
170
        :param labels: Labels to attach to the proposal
163
171
        :param prerequisite_branch: Optional prerequisite branch
 
172
        :param commit_message: Optional commit message
164
173
        :return: A `MergeProposal` object
165
174
        """
166
175
        raise NotImplementedError(self.create_proposal)
174
183
    # proposals?
175
184
    supports_merge_proposal_labels = None
176
185
 
 
186
    # Does this hoster support suggesting a commit message in the
 
187
    # merge proposal?
 
188
    supports_merge_proposal_commit_message = None
 
189
 
177
190
    # The base_url that would be visible to users. I.e. https://github.com/
178
191
    # rather than https://api.github.com/
179
192
    base_url = None