l.c.i.d.IStaticDiffSource(Interface) : interface documentation

Part of lp.code.interfaces.diff View In Hierarchy

Component that can acquire StaticDiffs.
Method acquire Get or create a StaticDiff.
Method acquireFromText Get or create a StaticDiff from a string.
def acquire(from_revision_id, to_revision_id, repository, filename=None):
Get or create a StaticDiff.
def acquireFromText(from_revision_id, to_revision_id, text, filename=None):
Get or create a StaticDiff from a string.

If a StaticDiff exists for this revision_id pair, the text is ignored.

Parametersfrom_revision_idThe id of the old revision.
to_revision_idThe id of the new revision.
textThe text of the diff, as bytes.
filenameThe filename to store for the diff. Randomly generated if not supplied.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.