Part of lp.code.model.diff View In Hierarchy
IPreviewDiff.| Method | title | See IPreviewDiff. |
| Method | has_conflicts | Undocumented |
| Class Method | fromBranchMergeProposal | Create a PreviewDiff from a BranchMergeProposal. |
| Class Method | create | Create a PreviewDiff with specified values. |
| Method | stale | See IPreviewDiff. |
| Method | getFileByName | See IPreviewDiff. |
PreviewDiff from a BranchMergeProposal.
Includes a diff from the source to the target.
:param bmp: The BranchMergeProposal to generate a PreviewDiff for.
:return: A PreviewDiff.
| Parameters | bmp | The BranchMergeProposal this diff references. |
| diff_content | The text of the diff, as bytes. | |
| source_revision_id | The revision_id of the source branch. | |
| target_revision_id | The revision_id of the target branch. | |
| prerequisite_revision_id | The revision_id of the prerequisite branch. | |
| conflicts | The conflicts, as text. | |
| Returns | A PreviewDiff with specified values. | |