-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repodiff: Improve changelog output #456
base: master
Are you sure you want to change the base?
repodiff: Improve changelog output #456
Conversation
Hello @Thaodan! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-05-27 16:45:12 UTC |
65f77a7
to
58d235c
Compare
- Only show a section when there's content to display, e.g. no upraded packages. - Draw sections with induvidual decending headers - List size and versionchanges as regular entries in the changelog - Show the amount of changes to each major section e.g. added packages
Since now added, removed and updated packages already show the amount of changed packages.
ff8d856
to
8c171d0
Compare
Hi, thank you for your pull request. I am not sure this is more readable than the previous output, because it gets quite long and it's harder to get the list of packages just from the first look. I tried the option --simple to see if it makes a more consise output, but it failed with a traceback:
Moreover, the list of added packages and list of removed packages doesn't work correctly. The list of packages is in the list of binaries and in case of the removed packages, the header is "None". So, this needs more work, but since DNF 5 is under development (https://github.com/rpm-software-management/libdnf/tree/dnf-5-devel), maybe we could consider reworking it there instead of changing this plugin DNF 4. |
I can post an example file I generated. The point of this PR is to make the detailed output more useable by grouping the changes better and also showing the changelog of newly added packages.
I've run this against the release version of dnf, I can look to test it against master.
Hm this could be again because of recent changes, I will try to fix it.
|
This PR aims to improve the output that is outputted by repodiff to be more visually appealing and better formated.
The idea is to format the changelog like this:
Optionally the author can be hidden or the dateline can be skipped entirely to better show e.g. the diff between repos of different distribution releases.