Don't deal with unused files in a parent diff.

Review Request #4016 — Created April 1, 2013 and submitted

Information

Review Board
release-1.7.x

Reviewers

Don't deal with unused files in a parent diff.

When uploading a diff with a parent diff, it's very common to have files
that are in the parent diff that are not in the actual diff going up for
review. This is especially true for large merge branches, or when some
incorrect parent diffs are put up (wrong parameters passed to
post-review/rbt post).

Each unused file gets checked against the repository and then then
thrown away. This is pointless.

We now ignore every file in a parent diff that doesn't have a matching
diff in the actual diff file.
Tested with some manual testing with big parent diffs, and with moved
files, with temporary logging information. Saw that all files were
skipped except those that had changes in my diff.
Description From Last Updated

How about defaulting limit_to to []?

daviddavid
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/diffviewer/forms.py
        reviewboard/diffviewer/tests.py
      Ignored Files:
    
    
  2. 
      
david
  1. 
      
  2. reviewboard/diffviewer/forms.py (Diff revision 1)
     
     
    Show all issues
    How about defaulting limit_to to []?
    1. This will fail for non-parent diffs. It will appear blank and so we'll filter it out, for every file.
      
      None means "there's no filter list." [] means "we're limiting to no files."
    2. Ah, all makes sense now. Ship it.
  3. 
      
chipx86
Review request changed
Status:
Completed