Jump to >


RawFileDiffData model definition.

class RawFileDiffData(*args, **kwargs)[source]

Stores raw diff data as binary content in the database.

This is the class used in Review Board 2.5+ to store diff content. Unlike in previous versions, the content is not base64-encoded. Instead, it is stored either as bzip2-compressed data (if the resulting compressed data is smaller than the raw data), or as the raw data itself.

property content[source]

Return the content of the diff.

The content will be uncompressed (if necessary) and returned as the raw set of bytes originally uploaded.


Recalculates the insert_count and delete_count values.

This will attempt to re-parse the stored diff and fetch the line counts through the parser.