Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Str Assign NameStore Call NameLoad keyword NameLoad ClassDef bases body Assign NameStore Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareIs AttributeLoad NameLoad attr NameLoad body Return Call NameLoad AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str TupleLoad NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad Call NameLoad Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Return AttributeLoad AttributeLoad NameLoad attr attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad Assign TupleStore AttributeStore NameLoad attr NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Return Dict Str Str Str Str Str Str Str NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore TupleLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad If Call AttributeLoad NameLoad attr body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr BinOpBitOr Call NameLoad keyword Num Call NameLoad keyword Num attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword Call NameLoad Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If CompareIsNot NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareEq Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases body Assign NameStore Str Assign NameStore ListLoad Str Str decorator_list decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list ClassDef bases body Assign NameStore Str decorator_list decorator_list NameLoad
N/A __future__ unicode_literals N/A bz2 N/A logging django.db models django.db.models Q django.utils six timezone django.utils.encoding python_2_unicode_compatible django.utils.translation ugettext_lazy _ djblets.db.fields Base64Field JSONField reviewboard.diffviewer.errors DiffParserError reviewboard.diffviewer.managers RawFileDiffDataManager FileDiffManager DiffSetManager reviewboard.scmtools.core PRE_CREATION reviewboard.scmtools.models Repository LegacyFileDiffData N/A N/A models Model N/A N/A Deprecated, legacy class for base64-encoded diff data.

    This is no longer populated, and exists solely to store legacy data
    that has not been migrated to :py:class:`RawFileDiffData`.
     N/A binary_hash N/A N/A models CharField N/A _ hash max_length 40 primary_key True N/A binary N/A Base64Field N/A _ base64 N/A extra_data N/A JSONField null True Meta N/A N/A N/A db_table diffviewer_filediffdata N/A N/A RawFileDiffData N/A N/A models Model N/A N/A 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.
     N/A COMPRESSION_BZIP2 B N/A COMPRESSION_CHOICES N/A N/A COMPRESSION_BZIP2 N/A _ BZip2-compressed N/A binary_hash N/A N/A models CharField N/A _ hash max_length 40 unique True N/A binary N/A N/A models BinaryField N/A compression N/A N/A models CharField max_length 1 choices COMPRESSION_CHOICES null True blank True N/A extra_data N/A JSONField null True N/A objects N/A RawFileDiffDataManager content N/A N/A self N/A N/A N/A Returns the content of the diff.

        The content will be uncompressed (if necessary) and returned as the
        raw set of bytes originally uploaded.
         N/A N/A N/A self compression N/A self COMPRESSION_BZIP2 N/A N/A N/A N/A bz2 decompress N/A self binary N/A N/A N/A N/A self compression None N/A N/A N/A bytes N/A self binary N/A N/A N/A NotImplementedError N/A Unsupported compression method %s for RawFileDiffData %s N/A N/A self compression N/A self pk N/A property insert_count N/A N/A self N/A N/A N/A N/A N/A N/A self extra_data get insert_count N/A property insert_count N/A N/A self value N/A N/A N/A N/A N/A self extra_data N/A insert_count value N/A N/A insert_count setter delete_count N/A N/A self N/A N/A N/A N/A N/A N/A self extra_data get delete_count N/A property delete_count N/A N/A self value N/A N/A N/A N/A N/A self extra_data N/A delete_count value N/A N/A delete_count setter recalculate_line_counts N/A N/A self tool N/A N/A N/A 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.
         N/A N/A N/A logging debug N/A Recalculating insert/delete line counts on RawFileDiffData %s N/A self pk N/A N/A N/A files N/A N/A N/A N/A tool get_parser N/A self content parse N/A N/A N/A len files 1 N/A N/A N/A DiffParserError N/A Got wrong number of files (%d) N/A len files N/A N/A N/A DiffParserError N/A e N/A N/A N/A N/A logging error Failed to correctly parse stored diff data in RawFileDiffData ID %s when trying to get insert/delete line counts: %s N/A self pk e N/A N/A file_info N/A files N/A 0 N/A N/A self insert_count N/A file_info insert_count N/A N/A self delete_count N/A file_info delete_count N/A N/A self pk N/A N/A N/A N/A self save update_fields N/A extra_data N/A N/A FileDiff N/A N/A models Model N/A N/A 
    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.
     N/A COPIED C N/A DELETED D N/A MODIFIED M N/A MOVED V N/A STATUSES N/A N/A COPIED N/A _ Copied N/A DELETED N/A _ Deleted N/A MODIFIED N/A _ Modified N/A MOVED N/A _ Moved N/A diffset N/A N/A models ForeignKey DiffSet related_name files verbose_name N/A _ diff set N/A source_file N/A N/A models CharField N/A _ source file max_length 1024 N/A dest_file N/A N/A models CharField N/A _ destination file max_length 1024 N/A source_revision N/A N/A models CharField N/A _ source file revision max_length 512 N/A dest_detail N/A N/A models CharField N/A _ destination file details max_length 512 N/A binary N/A N/A models BooleanField N/A _ binary file default False N/A status N/A N/A models CharField N/A _ status max_length 1 choices STATUSES N/A diff64 N/A Base64Field N/A _ diff db_column diff_base64 blank True N/A legacy_diff_hash N/A N/A models ForeignKey LegacyFileDiffData db_column diff_hash_id related_name filediffs null True blank True N/A diff_hash N/A N/A models ForeignKey RawFileDiffData db_column raw_diff_hash_id related_name filediffs null True blank True N/A parent_diff64 N/A Base64Field N/A _ parent diff db_column parent_diff_base64 blank True N/A legacy_parent_diff_hash N/A N/A models ForeignKey LegacyFileDiffData db_column parent_diff_hash_id related_name parent_filediffs null True blank True N/A parent_diff_hash N/A N/A models ForeignKey RawFileDiffData db_column raw_parent_diff_hash_id related_name parent_filediffs null True blank True N/A extra_data N/A JSONField null True N/A objects N/A FileDiffManager source_file_display N/A N/A self N/A N/A N/A tool N/A N/A N/A N/A self diffset repository get_scmtool N/A N/A N/A tool normalize_path_for_display N/A self source_file N/A property dest_file_display N/A N/A self N/A N/A N/A tool N/A N/A N/A N/A self diffset repository get_scmtool N/A N/A N/A tool normalize_path_for_display N/A self dest_file N/A property deleted N/A N/A self N/A N/A N/A N/A N/A self status N/A self DELETED N/A property copied N/A N/A self N/A N/A N/A N/A N/A self status N/A self COPIED N/A property moved N/A N/A self N/A N/A N/A N/A N/A self status N/A self MOVED N/A property is_new N/A N/A self N/A N/A N/A N/A N/A self source_revision PRE_CREATION N/A property _get_diff N/A N/A self N/A N/A N/A N/A N/A self _needs_diff_migration N/A N/A N/A N/A self _migrate_diff_data N/A N/A N/A self diff_hash content N/A _set_diff N/A N/A self diff N/A N/A N/A N/A N/A self diff_hash is_new N/A N/A N/A RawFileDiffData objects get_or_create_from_data diff N/A N/A self diff64 N/A is_new N/A N/A diff N/A property _get_diff _set_diff _get_parent_diff N/A N/A self N/A N/A N/A N/A N/A self _needs_parent_diff_migration N/A N/A N/A N/A self _migrate_diff_data N/A N/A self parent_diff_hash N/A N/A N/A N/A self parent_diff_hash content N/A N/A None N/A _set_parent_diff N/A N/A self parent_diff N/A N/A N/A N/A parent_diff N/A N/A False N/A N/A N/A self parent_diff_hash is_new N/A N/A N/A RawFileDiffData objects get_or_create_from_data parent_diff N/A N/A self parent_diff64 N/A is_new N/A N/A parent_diff N/A property _get_parent_diff _set_parent_diff orig_sha1 N/A N/A self N/A N/A N/A N/A N/A N/A self extra_data get orig_sha1 N/A property patched_sha1 N/A N/A self N/A N/A N/A N/A N/A N/A self extra_data get patched_sha1 N/A property get_line_counts N/A N/A self N/A N/A N/A Returns the stored line counts for the diff.

        This will return all the types of line counts that can be set:

        * ``raw_insert_count``
        * ``raw_delete_count``
        * ``insert_count``
        * ``delete_count``
        * ``replace_count``
        * ``equal_count``
        * ``total_line_count``

        These are not all guaranteed to have values set, and may instead be
        None. Only ``raw_insert_count``, ``raw_delete_count``
        ``insert_count``, and ``delete_count`` are guaranteed to have values
        set.

        If there isn't a processed number of inserts or deletes stored,
        then ``insert_count`` and ``delete_count`` will be equal to the
        raw versions.
         N/A N/A N/A raw_insert_count N/A self extra_data N/A raw_delete_count N/A self extra_data N/A N/A N/A N/A self diff_hash N/A N/A N/A N/A self _migrate_diff_data N/A N/A N/A N/A self diff_hash insert_count None N/A N/A N/A N/A self _recalculate_line_counts N/A self diff_hash N/A N/A N/A N/A self extra_data update N/A raw_insert_count raw_delete_count N/A N/A self diff_hash insert_count N/A N/A self diff_hash delete_count N/A N/A self pk N/A N/A N/A N/A self save update_fields N/A extra_data N/A raw_insert_count N/A N/A self extra_data N/A raw_insert_count N/A raw_delete_count N/A N/A self extra_data N/A raw_delete_count N/A N/A raw_insert_count raw_delete_count insert_count delete_count replace_count equal_count total_line_count raw_insert_count raw_delete_count N/A N/A N/A self extra_data get insert_count raw_insert_count N/A N/A N/A self extra_data get delete_count raw_delete_count N/A N/A N/A self extra_data get replace_count N/A N/A N/A self extra_data get equal_count N/A N/A N/A self extra_data get total_line_count N/A set_line_counts N/A N/A self raw_insert_count raw_delete_count insert_count delete_count replace_count equal_count total_line_count N/A None None None None None None None N/A N/A Sets the line counts on the FileDiff.

        There are many types of useful line counts that can be set.

        ``raw_insert_count`` and ``raw_delete_count`` correspond to the
        raw inserts and deletes in the actual patch, which will be set both
        in this FileDiff and in the associated RawFileDiffData.

        The other counts are stored exclusively in FileDiff, as they are
        more render-specific.
         N/A updated False N/A N/A N/A self diff_hash_id N/A N/A N/A N/A logging warning N/A Attempting to call set_line_counts on un-migrated FileDiff %s N/A self pk N/A N/A N/A self _migrate_diff_data False N/A N/A N/A insert_count None N/A raw_insert_count None N/A N/A N/A self diff_hash insert_count None N/A N/A N/A self diff_hash insert_count insert_count N/A N/A N/A N/A logging warning N/A Attempting to override insert count on RawFileDiffData %s from %s to %s (FileDiff %s) N/A N/A N/A self diff_hash pk N/A N/A self diff_hash insert_count insert_count N/A self pk N/A N/A N/A delete_count None N/A raw_delete_count None N/A N/A N/A self diff_hash delete_count None N/A N/A N/A self diff_hash delete_count delete_count N/A N/A N/A N/A logging warning N/A Attempting to override delete count on RawFileDiffData %s from %s to %s (FileDiff %s) N/A N/A N/A self diff_hash pk N/A N/A self diff_hash delete_count delete_count N/A self pk N/A N/A N/A raw_insert_count None N/A raw_delete_count None N/A N/A N/A raw_insert_count None N/A N/A N/A N/A self diff_hash insert_count raw_insert_count N/A N/A N/A self extra_data N/A raw_insert_count raw_insert_count N/A updated True N/A N/A raw_delete_count None N/A N/A N/A N/A self diff_hash delete_count raw_delete_count N/A N/A N/A self extra_data N/A raw_delete_count raw_delete_count N/A updated True N/A N/A N/A N/A self diff_hash save N/A N/A key cur_value N/A N/A insert_count insert_count N/A delete_count delete_count N/A replace_count replace_count N/A equal_count equal_count N/A total_line_count total_line_count N/A N/A N/A N/A cur_value None N/A cur_value N/A N/A N/A self extra_data get key N/A N/A N/A N/A self extra_data N/A key cur_value N/A updated True N/A N/A updated N/A self pk N/A N/A N/A N/A self save update_fields N/A extra_data N/A _needs_diff_migration N/A N/A self N/A N/A N/A N/A N/A self diff_hash_id None N/A _needs_parent_diff_migration N/A N/A self N/A N/A N/A N/A N/A N/A self parent_diff_hash_id None N/A N/A self parent_diff64 N/A self legacy_parent_diff_hash_id N/A _migrate_diff_data N/A N/A self recalculate_counts N/A True N/A N/A Migrates diff data associated with a FileDiff to RawFileDiffData.

        If the diff data is stored directly on the FileDiff, it will be
        removed and stored on a RawFileDiffData instead.

        If the diff data is stored on an associated LegacyFileDiffData,
        that will be converted into a RawFileDiffData. The LegacyFileDiffData
        will then be removed, if nothing else is using it.
         N/A needs_save False N/A diff_hash_is_new False N/A parent_diff_hash_is_new False N/A legacy_pks N/A N/A N/A N/A self _needs_diff_migration N/A N/A needs_save True N/A N/A self legacy_diff_hash_id N/A N/A N/A N/A logging debug Migrating LegacyFileDiffData %s to RawFileDiffData for diff in FileDiff %s N/A self legacy_diff_hash_id N/A self pk N/A diff_hash_is_new N/A N/A self _set_diff N/A N/A self legacy_diff_hash binary N/A N/A N/A legacy_pks append N/A self legacy_diff_hash_id N/A N/A self legacy_diff_hash None N/A N/A N/A N/A logging debug Migrating FileDiff %s diff data to RawFileDiffData N/A self pk N/A diff_hash_is_new N/A N/A self _set_diff N/A self diff64 N/A recalculate_counts N/A N/A N/A N/A self _recalculate_line_counts N/A self diff_hash N/A N/A N/A self _needs_parent_diff_migration N/A N/A needs_save True N/A N/A self legacy_parent_diff_hash_id N/A N/A N/A N/A logging debug Migrating LegacyFileDiffData %s to RawFileDiffData for parent diff in FileDiff %s N/A self legacy_parent_diff_hash_id N/A self pk N/A parent_diff_hash_is_new N/A N/A self _set_parent_diff N/A N/A self legacy_parent_diff_hash binary N/A N/A N/A legacy_pks append N/A self legacy_parent_diff_hash_id N/A N/A self legacy_parent_diff_hash None N/A N/A N/A N/A logging debug Migrating FileDiff %s parent diff data to RawFileDiffData N/A self pk N/A parent_diff_hash_is_new N/A N/A self _set_parent_diff N/A self parent_diff64 N/A recalculate_counts N/A N/A N/A N/A self _recalculate_line_counts N/A self parent_diff_hash N/A needs_save N/A N/A N/A N/A self save N/A legacy_pks N/A N/A N/A N/A N/A N/A N/A N/A N/A LegacyFileDiffData objects filter pk__in legacy_pks exclude N/A N/A Q filediffs__pk__gt 0 N/A Q parent_filediffs__pk__gt 0 delete N/A N/A diff_hash_is_new parent_diff_hash_is_new N/A _recalculate_line_counts N/A N/A self diff_hash N/A N/A N/A Recalculates the line counts on the specified RawFileDiffData.

        This requires that diff_hash is set. Otherwise, it will assert.
         N/A N/A N/A diff_hash recalculate_line_counts N/A N/A N/A N/A self diffset repository get_scmtool N/A __str__ N/A N/A self N/A N/A N/A N/A %s (%s) -> %s (%s) N/A N/A self source_file N/A self source_revision N/A self dest_file N/A self dest_detail N/A N/A python_2_unicode_compatible DiffSet N/A N/A models Model N/A N/A 
    A revisioned collection of FileDiffs.
     N/A name N/A N/A models CharField N/A _ name max_length 256 N/A revision N/A N/A models IntegerField N/A _ revision N/A timestamp N/A N/A models DateTimeField N/A _ timestamp default N/A timezone now N/A basedir N/A N/A models CharField N/A _ base directory max_length 256 blank True default N/A history N/A N/A models ForeignKey DiffSetHistory null True related_name diffsets verbose_name N/A _ diff set history N/A repository N/A N/A models ForeignKey Repository related_name diffsets verbose_name N/A _ repository N/A diffcompat N/A N/A models IntegerField N/A _ differ compatibility version default 0 help_text N/A _ The diff generator compatibility version to use. This can and should be ignored. N/A base_commit_id N/A N/A models CharField N/A _ commit ID max_length 64 blank True null True db_index True help_text N/A _ The ID/revision this change is built upon. N/A extra_data N/A JSONField null True N/A objects N/A DiffSetManager get_total_line_counts N/A N/A self N/A N/A N/A Returns the total line counts from all files in this diffset. N/A counts N/A N/A filediff N/A N/A N/A self files all N/A N/A N/A key value N/A N/A six iteritems N/A N/A filediff get_line_counts N/A N/A N/A N/A N/A counts get key None N/A N/A N/A counts N/A key value N/A N/A N/A value None N/A N/A N/A counts N/A key value N/A counts N/A save N/A N/A self N/A kwargs N/A N/A 
        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.
         N/A N/A N/A N/A self revision 0 N/A N/A self history None N/A N/A N/A N/A N/A N/A N/A self history diffsets count 0 N/A N/A N/A self revision 1 N/A N/A N/A self revision N/A N/A N/A N/A N/A N/A self history diffsets latest revision 1 N/A N/A self history N/A N/A N/A N/A self history last_diff_updated N/A self timestamp N/A N/A N/A N/A self history save N/A N/A N/A N/A super DiffSet self save N/A __str__ N/A N/A self N/A N/A N/A N/A [%s] %s r%s N/A N/A self id N/A self name N/A self revision N/A Meta N/A N/A N/A get_latest_by revision N/A ordering N/A revision timestamp N/A N/A python_2_unicode_compatible DiffSetHistory N/A N/A models Model N/A N/A 
    A collection of diffsets.

    This gives us a way to store and keep track of multiple revisions of
    diffsets belonging to an object.
     N/A name N/A N/A models CharField N/A _ name max_length 256 N/A timestamp N/A N/A models DateTimeField N/A _ timestamp default N/A timezone now N/A last_diff_updated N/A N/A models DateTimeField N/A _ last updated blank True null True default None N/A extra_data N/A JSONField null True __str__ N/A N/A self N/A N/A N/A N/A Diff Set History (%s revisions) N/A N/A N/A self diffsets count N/A Meta N/A N/A N/A verbose_name_plural Diff set histories N/A N/A python_2_unicode_compatible