Show squashed diffs in the diffviewer
Review Request #7135 — Created March 28, 2015 and submitted — Latest diff uploaded
Previously we would show multiple
FileDiff
s for the same file in the
diff viewer if the file was modified in multiple commits. Now we
determine whatFileDiff
s are ancestors of otherFileDiff
s in the
commit history and filter out all the ancestors. The result is a
squashed diff between the original file and the resulting file.
Ran unit tests.
Manually verified that the squashed diffs were correct.
Still able to view the
FileDiff
s of review requests without
commit history.
Diff Revision 4
This is not the most recent revision of the diff. The latest diff is revision 10. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
reviewboard/diffviewer/chunk_generator.py |
---|
reviewboard/diffviewer/commitutils.py |
---|
reviewboard/diffviewer/diffutils.py |
---|
reviewboard/diffviewer/models.py |
---|
reviewboard/diffviewer/renderers.py |
---|
reviewboard/diffviewer/tests.py |
---|
reviewboard/diffviewer/views.py |
---|