Part of lp.code.interfaces.branchmergeproposal View In Hierarchy
Known subclasses: lp.code.interfaces.webservice.IBranchMergeProposal
Whiteboard | whiteboard | Notes about the merge. |
Attribute | next_preview_diff_job | The next BranchMergeProposalJob that will update a preview diff. |
Attribute | merged_revision | The revision on the target branch which contains the merge from the source branch (VCS-agnostic). |
Attribute | title | A nice human readable name to describe the merge proposal. This is generated from the source and target branch, and used as the tal fmt:link text and for email subjects. |
Text | root_message_id | Undocumented |
Datetime | revision_end_date | Undocumented |
Method | getComment | Return the CodeReviewComment with the specified ID. |
Method | userCanSetCommentVisibility | Can user set code review comment visibility? |
Method | setCommentVisibility | Set the visible attribute on a code review comment. |
Method | getRelatedBugTasks | Return the Bug tasks related to this merge proposal. |
Method | updateRelatedBugsFromSource | Update related bug links based on commits in the source branch. |
Method | getRevisionsSinceReviewStart | Return all the revisions added since the review began. |
Method | getVoteReference | Return the CodeReviewVoteReference with the specified ID. |
Method | getNotificationRecipients | Return the people who should be notified. |
Method | isValidTransition | True if it is valid for user update the proposal to next_state. |
Method | isMergable | Is the proposal in a state that allows it to being merged? |
Method | getUnlandedSourceBranchRevisions | Return a sequence of BranchRevision objects. |
Method | getUsersVoteReference | Get the existing vote reference for the given user. |
Method | generateIncrementalDiff | Generate an incremental diff for the merge proposal. |
Method | getIncrementalDiffs | Return a list of diffs for the specified revisions. |
Method | getPreviewDiff | Return the preview diff with the given id. |
Method | getInlineComments | Return a list of inline comments related to this MP. |
Method | getLatestDiffUpdateJob | Return the latest IUpdatePreviewDiffJob for this MP. |
Raises | WrongBranchMergeProposal | if the comment with this ID is not on this merge proposal. |
user
set code review comment visibility?
Admins and registry experts can set the visibility of any code review comment.
Comment authors can also set the visibility of their own comments, but that is not checked here; this method determines whether arbitrary users can set the visibility of comments they did not make themselves.
This is restricted to Launchpad admins, registry experts, and comment authors, and will return a HTTP Error 401: Unauthorized error for non-admin callers.
Raises | WrongBranchMergeProposal | if the comment with this ID is not on this merge proposal. |
This is currently only meaningful for Git-based merge proposals.
Revisions are grouped by creation (i.e. push) time. :return: An iterator of (date, iterator of revision data)
Recipients will be returned as a dictionary where the key is the person, and the values are (subscription, rationale) tuples.
Parameters | min_level | The minimum notification level needed to be notified. |
As long as the proposal isn't in one of the end states, it is valid to be merged.
BranchRevision
objects.
Returns up to 10 revisions that are in the revision history for the source branch that are not in the revision history of the target branch. These are the revisions that have been committed to the source branch since it branched off the target branch.
For Bazaar, this returns a sequence of BranchRevision
objects.
For Git, this returns a sequence of commit information dicts.
Returns | A CodeReviewVoteReference or None. |
Parameters | old_revision | The Revision to generate the diff from. |
new_revision | The Revision to generate the diff to. | |
diff | If supplied, a pregenerated Diff . |
Parameters | revision_list | A list of tuples of (Revision , Revision ).
The first revision in the tuple is the old revision. The second
is the new revision. |
Returns | A list of IncrementalDiffs in the same order as the supplied Revisions. |
Parameters | id | The id of the target PreviewDiff . |
The return value is an list of dictionaries (objects), each one representing a comment with 'line_number', 'person', 'text' and 'date' attributes.
Parameters | previewdiff_id | The ID of the target PreviewDiff . |