l.c.a.b.BranchMergeProposalDelta : class documentation

Part of lp.code.adapters.branch View In Hierarchy

Known subclasses: lp.code.adapters.branch.BranchMergeProposalNoPreviewDiffDelta

Represent changes made to a BranchMergeProposal.
Method __init__ Undocumented
Class Method construct Return a new instance representing the differences.
Class Method snapshot Return a snapshot suitable for use with construct.
Class Method monitor Context manager to monitor for changes in a merge proposal.
def __init__(self, **kwargs):
Undocumented
@classmethod
def construct(klass, old_merge_proposal, new_merge_proposal):
Return a new instance representing the differences.
Parametersold_merge_proposalA snapshot representing the merge proposal's previous state.
new_merge_proposalThe merge proposal (not a snapshot).
@classmethod
def snapshot(klass, merge_proposal):
Return a snapshot suitable for use with construct.
Parametersmerge_proposalThe merge proposal to take a snapshot of.
@classmethod
@contextmanager
def monitor(klass, merge_proposal):
Context manager to monitor for changes in a merge proposal.

If the merge proposal has changed, an ObjectModifiedEvent is issued via zope.event.notify.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.