Affected Version:
2.6.1
What steps will reproduce the problem?
1. Push a change for review with two files, foo and bar
2. Review the change and add comments to both files
3. Push a new patchset with updates in foo but with no changes to bar
4. Review the new change and navigate to foo
5. Set the left-side to the patchset with added comments
6. Repeat for bar
What is the expected output? What do you see instead?
When comparing patchset 1 and 2 for files foo and bar, I expect to see my previous comments appear on the left side (patchset 1). I expect to see comments and file context in the older version even if no code changes occurred in that area since.
For files with any change in them (even a new line at the end, say), I do see the old comments.
For files with no changes between the left-side and right-side views, I do not see the old comments or context. Instead I see the "No differences" message.
----
Please provide any additional information below.
This problem is exacerbated by its inconsistency. The fact that it sometimes shows comments (a change in the file) and sometimes shows none is misleading because it makes it appear that the "no changes" file also had no comments.
Examples:
File with comments but no changes (Comments do not show):
https://gerrit-review.googlesource.com/#/c/39261/5..6/src/main/java/com/google/gwtorm/schema/sql/DialectMySQL.java
File with comments and changes (Comments do show):
https://gerrit-review.googlesource.com/#/c/39261/4..5/src/test/java/com/google/gwtorm/schema/sql/SqlDialectTest.java
Mergedinto: 2122