2419: Deleting 2 binary files using diff --git: only the second deleted file is seen in the review

tif***@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
Sept. 24, 2012
Review board 1.6.3

When removing two binary files using the following diff:
----------
diff --git a/app1.exe b/app1.exe
deleted file mode 100644
Binary file app1.exe has changed
diff --git a/app2.exe b/app2.exe
deleted file mode 100644
Binary file app2.exe has changed

----------

Only the second file gets removed. The first one is not seen by reviewboard and has been removed from the diff when downloading the diff from reviewboard.

When adding an empty line between the two removals in the diff. The diff gets parsed correctly by reviewboard:
----------
diff --git a/app1.exe b/app1.exe
deleted file mode 100644
Binary file app1.exe has changed

diff --git a/app2.exe b/app2.exe
deleted file mode 100644
Binary file app2.exe has changed

----------

The diff parsing of reviewboard is probably too strict. Related to this problem: why does reviewboard modify the diffs I upload to it? I don't see any reason to tamper with the diffs uploaded to reviewboard.
chipx86
#1 chipx86
  • +PendingReview
  • -Priority-Medium
    +Priority-Critical
    +Milestone-Release1.6.x
    +Component-DiffParser
  • +chipx86
chipx86
#2 chipx86
Pushed to release-1.6.x (ee29826d1a2f99847d4181b955d3a8492249af56)
  • -PendingReview
    +Fixed