Part of lp.code.model.branchmergeproposal View In Hierarchy
Method | source_git_ref 0 | Undocumented |
Method | source_git_ref | Undocumented |
Method | target_git_ref 0 | Undocumented |
Method | target_git_ref | Undocumented |
Method | prerequisite_git_ref 0 | Undocumented |
Method | prerequisite_git_ref | Undocumented |
Method | merge_source | Undocumented |
Method | merge_target | Undocumented |
Method | merge_prerequisite | Undocumented |
Method | parent | Undocumented |
Method | private | Undocumented |
Method | next_preview_diff_job | Undocumented |
Method | merged_revision | Return the merged revision identifier. |
Method | bugs | Undocumented |
Method | getRelatedBugTasks | Bug tasks which are linked to the source but not the target. |
Method | createBugLink | See BugLinkTargetMixin . |
Method | deleteBugLink | See BugLinkTargetMixin . |
Method | linkBug | See BugLinkTargetMixin . |
Method | unlinkBug | See BugLinkTargetMixin . |
Method | updateRelatedBugsFromSource | See IBranchMergeProposal . |
Method | address | Undocumented |
Method | supersedes | Undocumented |
Method | target | See IHasBranchTarget . |
Method | title | See IBranchMergeProposal . |
Method | all_comments | See IBranchMergeProposal . |
Method | getComment | See IBranchMergeProposal . |
Method | userCanSetCommentVisibility | See IBranchMergeProposal . |
Method | setCommentVisibility | See IBranchMergeProposal . |
Method | getVoteReference | See IBranchMergeProposal . |
Method | preview_diffs | Undocumented |
Method | preview_diff | Undocumented |
Method | votes | Undocumented |
Method | getNotificationRecipients | See IBranchMergeProposal.getNotificationRecipients |
Method | isValidTransition | See IBranchMergeProposal . |
Method | setStatus | See IBranchMergeProposal . |
Method | setAsWorkInProgress | See IBranchMergeProposal . |
Method | requestReview | See IBranchMergeProposal . |
Method | isMergable | See IBranchMergeProposal . |
Method | approveBranch | See IBranchMergeProposal . |
Method | rejectBranch | See IBranchMergeProposal . |
Method | markAsMerged | See IBranchMergeProposal . |
Method | resubmit | See IBranchMergeProposal . |
Method | nominateReviewer | See IBranchMergeProposal . |
Method | deleteProposal | See IBranchMergeProposal . |
Method | getUnlandedSourceBranchRevisions | See IBranchMergeProposal . |
Method | createComment | See IBranchMergeProposal . |
Method | getUsersVoteReference | Get the existing vote reference for the given user. |
Method | createCommentFromMessage | See IBranchMergeProposal . |
Method | getInlineComments | See IBranchMergeProposal . |
Method | getDraftInlineComments | See IBranchMergeProposal . |
Method | getPreviewDiff | See IBranchMergeProposal . |
Method | saveDraftInlineComment | See IBranchMergeProposal . |
Method | updatePreviewDiff | See IBranchMergeProposal . |
Method | getIncrementalDiffRanges | Undocumented |
Method | generateIncrementalDiff | See IBranchMergeProposal . |
Method | getIncrementalDiffs | See IBranchMergeProposal . |
Method | scheduleDiffUpdates | See IBranchMergeProposal . |
Method | getLatestDiffUpdateJob | See IBranchMergeProposal . |
Method | revision_end_date | The cutoff date for showing revisions. |
Method | getRevisionsSinceReviewStart | Get the grouped revisions since the review started. |
Method | getMissingIncrementalDiffs | Undocumented |
Static Method | preloadDataForBMPs | Undocumented |
Method | _reportTooManyRelatedBugs | Undocumented |
Method | _fetchRelatedBugIDsFromSource | Fetch related bug IDs from the source branch. |
Method | _preview_diffs | Undocumented |
Method | _transitionToState | Update the queue_status of the proposal. |
Method | _mark_unreviewed | Clear metadata about a previous review. |
Method | _reviewProposal | Set the proposal to next_state. |
Method | _normalizeReviewType | Normalse the review type. |
Method | _subscribeUserToStackedBranch | Subscribe the user to the branch and those it is stacked on. |
Method | _acceptable_to_give_visibility | Undocumented |
Method | _ensureAssociatedBranchesVisibleToReviewer | A reviewer must be able to see the source and target branches. |
Method | _getTeamVoteReference | Get a vote reference where the user is in the review team. |
Method | _getVoteReference | Get the vote reference for the user. |
Method | _getNewerRevisions | Undocumented |
Inherited from SQLBase:
Method | __init__ | Extended version of the SQLObjectBase constructor. |
Method | __repr__ | Undocumented |
Method | destroySelf | Undocumented |
Method | __eq__ | Equality operator. |
Method | __ne__ | Inverse of __eq__. |
Method | __storm_invalidated__ | Flush cached properties. |
Class Method | _get_store | Undocumented |
Implies that these would be fixed, in the target, by the merge.
IBranchMergeProposal
.
This function can raise WrongBranchMergeProposal.
Raise an error if the proposal is in a final state.
IBranchMergeProposal
.Parameters | _date_requested | used only for testing purposes to override the normal UTC_NOW for when the review was requested. |
IBranchMergeProposal
.IBranchMergeProposal
.If review_type is None, it stays None. Otherwise the review_type is converted to lower case, and if the string is empty is gets changed to None.
Currently, we ensure the required visibility by subscribing the user to the branch and those on which it is stacked. We do not subscribe the reviewer if the branch is private and the reviewer is an open team.
IBranchMergeProposal
.IBranchMergeProposal
.Only return those reviews where the review_type matches.
Get the vote reference for the user.
IBranchMergeProposal
.IBranchMergeProposal
.If the proposal has been merged, then we stop at the merged date. If it is rejected, we stop at the reviewed date. For superseded proposals, it should ideally use the non-existant date_last_modified, but could use the last comment date.