Compute pre-patch files for FileDiffs in commit histories
Review Request #10119 — Created Aug. 13, 2018 and submitted — Latest diff uploaded
We can now generate the pre-patch version of a file that is modified
multiple times in a commit history. This allows the diffviewer to show
side-by-side diffs in these cases, however this behaviour is not correct
as it will show files with the same name multiple times when it should
show a condensed diff of the entire history. This will be addressed in a
later patch.This also allows the original and patched file API endpoints to work for
files modified multiple times in a commit history.
- Ran unit tests.
- Was able to view diffs in the diffviewer that depended on previous
FileDiffs.
Diff Revision 7
This is not the most recent revision of the diff. The latest diff is revision 13. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
11
12
13
reviewboard/diffviewer/diffutils.py |
---|
reviewboard/diffviewer/models/filediff.py |
---|
reviewboard/diffviewer/tests/test_diffutils.py |
---|
reviewboard/diffviewer/tests/test_filediff.py |
---|
reviewboard/testing/testcase.py |
---|