Show commit history differences in interdiffs
Review Request #7219 — Created April 17, 2015 and submitted
The diffviewer now shows the differences between commit histories in a
manner similar to how the change descriptions show differences in the
commit histories between revisions.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
Each case should be its own unit test, to help when things change down the road, and to keep this … |
chipx86 | |
Blank line between these. |
chipx86 | |
Let's raise a ValueError here with a suitable error, to help diagnose issues that may come up down the road. |
chipx86 | |
While a minor performance improvement, we should probably pull out history_entry[key] into a local variable so we don't have to … |
chipx86 | |
This should be imported a couple lines later. |
chipx86 | |
This should also raise a ValueError. |
chipx86 | |
We should pull out commit_dict[key] here as well. |
chipx86 | |
The list comprehension will be faster, since it doesn't involve a lambda call or a conversion back into a list. … |
chipx86 | |
Same here. |
chipx86 | |
There should be a blank line before each comment. |
chipx86 | |
This appears to conflict with the value. We should maybe say that if there is no interdiff, the API will … |
chipx86 | |
Space after switch. |
chipx86 | |
Blank line between these. |
chipx86 | |
Blank line between these. |
chipx86 | |
Col: 5 E301 expected 1 blank line, found 0 |
reviewbot | |
Should be indented only 4 spaces, not 30 |
david |
-
-
reviewboard/diffviewer/tests.py (Diff revision 1) Each case should be its own unit test, to help when things change down the road, and to keep this from growing longer.
-
-
reviewboard/diffviewer/views.py (Diff revision 1) Let's raise a
ValueError
here with a suitable error, to help diagnose issues that may come up down the road. -
reviewboard/diffviewer/views.py (Diff revision 1) While a minor performance improvement, we should probably pull out
history_entry[key]
into a local variable so we don't have to do the lookup three times.We should do the same with
history_entry['type']
, since that's used as many as three times as well. -
reviewboard/reviews/builtin_fields.py (Diff revision 1) This should be imported a couple lines later.
-
-
reviewboard/reviews/builtin_fields.py (Diff revision 1) We should pull out
commit_dict[key]
here as well. -
reviewboard/reviews/builtin_fields.py (Diff revision 1) The list comprehension will be faster, since it doesn't involve a lambda call or a conversion back into a list.
Also, we should pull out
info['old']
into a local variable. -
-
reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js (Diff revision 1) There should be a blank line before each comment.
-
reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js (Diff revision 1) This appears to conflict with the value. We should maybe say that if there is no interdiff, the API will always set this to be "unmodified", or something.
-
-
reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js (Diff revision 1) Blank line between these.
-
reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js (Diff revision 1) Blank line between these.
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js
-
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+273 -51) |
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js
Change Summary:
Add a stroke around the diff complexity icons. Update screenshots.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+273 -52) |
||||
Added Files: |
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js
Change Summary:
Stroke now matches table background and is fetched once dynamically.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+278 -52) |
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js
-
-
reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js (Diff revision 6) Should be indented only 4 spaces, not 30
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 7 (+279 -52) |
-
Tool: Pyflakes Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/builtin_fields.py reviewboard/diffviewer/views.py reviewboard/diffviewer/tests.py reviewboard/diffviewer/commitutils.py Ignored Files: reviewboard/static/rb/js/diffviewer/views/diffCommitIndexView.js reviewboard/static/rb/js/diffviewer/views/diffComplexityIconView.js reviewboard/static/rb/js/diffviewer/models/diffCommitModel.js