Generate original files in diff commit histories

Review Request #7050 — Created March 12, 2015 and submitted

Information

Review Board
dvcs
6d269d6...

Reviewers

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 FileDiffs
previously uploaded.


Description From Last Updated

How about breaking this out into a separate method?

daviddavid

Col: 1 E302 expected 2 blank lines, found 1

reviewbotreviewbot
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
  2. 
      
brennie
david
  1. 
      
  2. reviewboard/diffviewer/diffutils.py (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    Show all issues

    How about breaking this out into a separate method?

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
  2. reviewboard/diffviewer/diffutils.py (Diff revision 2)
     
     
    Show all issues
    Col: 1
     E302 expected 2 blank lines, found 1
    
  3. 
      
brennie
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
    
    
  2. 
      
brennie
david
  1. Ship It!
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to dvcs (e11b381)