Generate original files in diff commit histories
Review Request #7050 — Created March 12, 2015 and submitted
It is now possible to generate the original file for a
FileDiff
whose
source file was created or modified earlier in the series of uploaded
DiffCommits
. This allows the diff viewer to show side by side diffs
in these cases. However, the diff viewer will still show more than one
side by side diff in this case. This will be addressed in a later
patch.This patch also allows the original and patched file API resources to
return the files in this case.
Ran unit tests.
Was able to view diffs in the diff viewer that depended on
FileDiff
s
previously uploaded.
- Testing Done:
-
Ran unit tests.
+ + Was able to view diffs in the diff viewer that depended on
FileDiff
s+ previously uploaded. - Diff:
-
Revision 2 (+98 -28)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/diffviewer/diffutils.py Tool: Pyflakes Processed Files: reviewboard/diffviewer/diffutils.py
- Description:
-
It is now possible to generate the original file for a
FileDiff
whosesource file was created or modified earlier in the series of uploaded DiffCommits
. This allows the diff viewer to show side by side diffs~ in these cases. However, the diff viewer will show more than one ~ in these cases. However, the diff viewer will still show more than one side by side diff in this case. This will be addressed in a later patch. This patch also allows the original and patched file API resources to
return the files in this case.