Allow finding ancestors in commit intervals

Review Request #7326 — Created May 22, 2015 and submitted

Information

Review Board
dvcs

Reviewers

The find_oldest_filediff_ancestor utility function can now find
ancestor FileDiffs in commit intervals, as well as the oldest
ancestor commit. As such, it has been renamed to
find_ancestor_filediff. Unit tests have been added for both the new
and old behaviour of this function.

A new utility function, find_ancestor_commit_ids, was added to allow
this behaviour. A unit test has been added for this behaviour.

Ran unit tests.

Description From Last Updated

local variable 'f2' is assigned to but never used

reviewbotreviewbot

local variable 'f3' is assigned to but never used

reviewbotreviewbot

local variable 'f4' is assigned to but never used

reviewbotreviewbot

local variable 'f1' is assigned to but never used

reviewbotreviewbot

Col: 40 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 40 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 9 E303 too many blank lines (2)

reviewbotreviewbot

local variable 'f2' is assigned to but never used

reviewbotreviewbot

Col: 9 E303 too many blank lines (2)

reviewbotreviewbot

Remove this

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
  2. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
     local variable 'f2' is assigned to but never used
    
  3. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
     local variable 'f3' is assigned to but never used
    
  4. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
     local variable 'f4' is assigned to but never used
    
  5. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
     local variable 'f1' is assigned to but never used
    
  6. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 40
     E127 continuation line over-indented for visual indent
    
  7. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 40
     E127 continuation line over-indented for visual indent
    
  8. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 9
     E303 too many blank lines (2)
    
  9. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
     local variable 'f2' is assigned to but never used
    
  10. reviewboard/diffviewer/tests.py (Diff revision 1)
     
     
    Show all issues
    Col: 9
     E303 too many blank lines (2)
    
  11. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
  1. 
      
  2. reviewboard/diffviewer/commitutils.py (Diff revision 2)
     
     
    Show all issues

    Remove this

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/diffviewer/diffutils.py
        reviewboard/diffviewer/tests.py
        reviewboard/diffviewer/chunk_generator.py
        reviewboard/diffviewer/commitutils.py
    
    
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to dvcs (60d4d4c)