Reduce diff storage by hashing diff uploads

Review Request #2618 — Created Sept. 25, 2011 and submitted — Latest diff uploaded

Information

Review Board

Reviewers

Reduce diff storage by hashing diff uploads

Diff files that already exist in the database will no longer be double-stored. Diffs are now hashed on upload and correspond to a new hash->binary table.
Existing table data is not hashed and will remain for backwards compatibility. Evolutions have been made to create the new table and rename existing fields, so that model-logic can override fields. Test data has also been modified for new field name compatibility.
Ran fill-database and all data was hashed accordingly. Manually posted reviews and posted parent diffs. Created a unit test to check if hashes match.
docs/releasenotes/rbtools/0.3.4.txt
docs/releasenotes/rbtools/index.txt
reviewboard/manage.py
reviewboard/admin/tests.py
reviewboard/cmdline/rbsite.py
reviewboard/diffviewer/models.py
reviewboard/diffviewer/evolutions/__init__.py
reviewboard/htdocs/media/rb/css/common.css
reviewboard/htdocs/media/rb/css/reviews.css
reviewboard/reviews/managers.py
reviewboard/reviews/models.py
reviewboard/reviews/tests.py
reviewboard/reviews/views.py
reviewboard/reviews/fixtures/test_reviewrequests.json
reviewboard/reviews/templatetags/reviewtags.py
reviewboard/templates/admin/manual-updates/ext-dir.html
reviewboard/templates/reviews/review_detail.html
reviewboard/webapi/resources.py
reviewboard/webapi/tests.py
Loading...