• 
      

    Ensure interdiffs do not update line counts

    Review Request #7241 — Created April 23, 2015 and submitted

    Information

    Review Board
    release-2.5.x
    7a35a58...

    Reviewers

    Previously it was possible for the DiffChunkGenerator to update the
    line counts in a forced interdiff (i.e., an interdiff where there is no
    corresponding interfilediff, such as when the changes to a file are
    reverted). This results in all insert and delete counts being swapped
    in the FileDiff's line counts. This patch fixes this issue.

    A unit test was added to ensure that this does not regress.

    Ran unit tests.
    The new unit test failed without the patch applied.

    Description From Last Updated

    """ on the next line.

    chipx86 chipx86
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/chunk_generator.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/chunk_generator.py
      
      
    2. 
        
    chipx86
    1. 
        
    2. reviewboard/diffviewer/tests.py (Diff revision 1)
       
       
      Show all issues

      """ on the next line.

    3. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/chunk_generator.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/chunk_generator.py
      
      
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.5.x (ca08db7)