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 |
- Depends On:
-
-
Each case should be its own unit test, to help when things change down the road, and to keep this from growing longer.
-
-
Let's raise a
ValueError
here with a suitable error, to help diagnose issues that may come up down the road. -
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. -
-
-
-
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. -
-
-
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.
-
-
-
-
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:
-
f074e9b32ce906b52c8671ce75a69897caa31b1fdcc36746ebf09669b1bb75a52f2d8439c05f9941
- 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:
-
dcc36746ebf09669b1bb75a52f2d8439c05f9941494d0cb4d43cab6c4ebc445f12cc99110519a73e
- 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:
-
494d0cb4d43cab6c4ebc445f12cc99110519a73e7973736873bfec6dfe3b84daf8177bd30b6147a5
- 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
- Commit:
-
7973736873bfec6dfe3b84daf8177bd30b6147a51b9034668818aae4c8b305a28df07eaca648f869
- 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