• 
      

    Fix parent diffs with moved files

    Review Request #7440 — Created June 19, 2015 and submitted

    Information

    Review Board
    release-2.0.x
    f870adb...

    Reviewers

    Previously, if a parent diff contained a moved file without
    modifications, it was possible that the associated FileDiff could end
    up with incorrect source revisions and would not display correctly.
    When a parent diff only contains a move, we no longer apply it because
    it will not affect the content and the patch executable will exit
    with an error (as it believe there is only garbage in the patch). This
    has been fixed and diffs with moves in the parent diff display
    correctly.

    Unit tests have been added for two cases:

    • the case where the parent diff has both a modification and rename;
      and
    • the case where the parent diff has only a rename.

    Ran unit tests. The new unit test that covers a parent diff with only
    a rename failed without this patch applied.

    Description From Last Updated

    These should fit on the same line and would make formatting nicer.

    daviddavid

    Can you put the format operation outside of the parens around the whole string?

    daviddavid

    Col: 13 E131 continuation line unaligned for hanging indent

    reviewbotreviewbot
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
    2. 
        
    brennie
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
    2. 
        
    david
    1. Just a couple trivial style comments.

    2. reviewboard/diffviewer/managers.py (Diff revision 2)
       
       
       
      Show all issues

      These should fit on the same line and would make formatting nicer.

    3. reviewboard/diffviewer/tests.py (Diff revision 2)
       
       
       
       
       
       
       
       
      Show all issues

      Can you put the format operation outside of the parens around the whole string?

    4. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
    2. reviewboard/diffviewer/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 13
       E131 continuation line unaligned for hanging indent
      
    3. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/managers.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (e733d34)