4838: Handle adding empty, renamed and moved files in diffviewer

cyran.norbert

What version are you running?

3.0.14

What's the URL of the page this enhancement relates to, if any?

/r/{id}

Describe the enhancement and the motivation for it.

Reviewboard seems to completely ignore diffs with empty files. If there are only additions of empty files, reviewboard rejects the diff because it's "empty". If additions are among other changes, reviewboard cuts it out of the diff and they're not visible in the diffviewer.

Reviewboard also badly handles renaming and moving files, showing in diffviewer file deleted completely and added again in another path. Please handle those cases to make code review more convenient and accurate.

What operating system are you using? What browser?

OS and browser independent

Please provide any additional information below.

david
#1 david

Can you confirm what version control system you're using?

Also, how are you creating your diffs? If you're using RBTools, what version?

  • -New
    +NeedInfo
cyran.norbert
#2 cyran.norbert

Subversion. I create diffs with svn di. Not tested with rbt

cyran.norbert
#3 cyran.norbert

I tried with rbt now, adding empty files works well

david
#4 david

You'll have to use rbt here. "svn diff" produces output that doesn't have enough information for Review Board to know about the empty files.

  • -NeedInfo
    +ThirdParty