Help fund Review Board development! Donate today.

reviewboard.diffviewer.models - Change Descriptions Database Models

Module Contents

class reviewboard.diffviewer.models.DiffSet(*args, **kwargs)

A revisioned collection of FileDiffs.

save(**kwargs)

Saves this diffset.

This will set an initial revision of 1 if this is the first diffset in the history, and will set it to on more than the most recent diffset otherwise.

class reviewboard.diffviewer.models.DiffSetHistory(*args, **kwargs)

A collection of diffsets.

This gives us a way to store and keep track of multiple revisions of diffsets belonging to an object.

class reviewboard.diffviewer.models.FileDiff(*args, **kwargs)

A diff of a single file.

This contains the patch and information needed to produce original and patched versions of a single file in a repository.