Generate diffs between base and tip commits
Review Request #10130 — Created Aug. 27, 2018 and submitted
The
get_diff_files
utility can now generate a list of files to diff
that exist between two commits in a diffset. This allows us to generate
diffs between two commits (and therefore to see the diff of any
individual commit). There is currently no UI support for this behaviour,
but that is comming in a future patch.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
F811 redefinition of unused 'test_get_diff_files_with_history_tip_commit' from line 1213 |
reviewbot | |
Missing space between the backtick and "diffsets". |
chipx86 | |
Here, too. |
chipx86 | |
Missing blank line. |
chipx86 | |
No blank line needed here. |
chipx86 | |
Given the repeated complexity of this, it would be nice to make this whole expected_results building into a private utility … |
chipx86 | |
Redundant "diffsets" in this sentence. |
chipx86 | |
Same here. |
chipx86 | |
Can you compare explicitly against 0? |
chipx86 | |
Here, too. |
chipx86 | |
Should be .. code-block:: python (note the ::). |
chipx86 | |
This doesn't match. |
chipx86 | |
Syntax is super wonky here (0and). Does this even run? |
david | |
Should be "base commit" |
david | |
This is a little too fancy. How about: for ancestor in reversed(ancestors): if ancestor.commit_id <= base_commit.pk: base_filediff = ancestor break |
david | |
This looks like a fancy way of just doing by_details.get(base_filediff_details). |
chipx86 |
- Change Summary:
-
Flake8 and typo fixes
- Commit:
-
7503455a150e258de558f0dbf2713c05812efc9eb5834139aaa5eeb373c9206ebb2de545836aa248
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
b5834139aaa5eeb373c9206ebb2de545836aa2489d8e07f93a138d75da763d2474536df69d9a0c22
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
9d8e07f93a138d75da763d2474536df69d9a0c225af6c501da5c8b9a449e36bddb2b4af28ece2f78
Checks run (2 succeeded)
- Commit:
-
5af6c501da5c8b9a449e36bddb2b4af28ece2f7855caa2adf3df536281b179f65292df1f21406861
Checks run (2 succeeded)
- Change Summary:
-
Addressed feedback.
- Commit:
-
55caa2adf3df536281b179f65292df1f21406861e0d6450582d52547d0402c8818e7dc1983446c8e