Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389611 - Please support "rotated ChangeLog files" in "emerge --changelog"
Summary: Please support "rotated ChangeLog files" in "emerge --changelog"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 381649
  Show dependency tree
 
Reported: 2011-11-05 11:33 UTC by Andreas K. Hüttel
Modified: 2011-11-10 06:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2011-11-05 11:33:44 UTC
As discussed and specified in detail in the following gentoo-dev mailing list thread, 

http://old.nabble.com/Old-changelogs---eclass-dir-td32726216.html
(archive.gentoo.org is missing some mails).

I'm planning to implement an (initially manual) log rotation scheme for ChangeLog files in CVS. Please enhance "emerge --changelog" with the capability to search the spill files.


For convenience, I assemble here the planned implementation details from the e-mail thread:

* General algorithm:
- Possible split points are only at the end of years.
- Start at the end of the file and go backwards.
- Split it whenever the piece after the split point is larger than $size.
- Stop if the next split point is less than $delay ago.

I suggest 100 KiB for $size and 1 year for $delay

* The "old entries" file ChangeLog-YYYY (where YYYY is the year where the last entries come from) will be identical to the current ChangeLog file except for skipping at the start all entries added later than the split point.

* The new ChangeLog file will be identical to the current ChangeLog file except
for being truncated at the split point, and having a comment at the end referring to the following "old entries file".

* Both files will have a valid header.

For 18 files in the tree this means adding one split point, profiles/ChangeLog will be split into multiple files.
Comment 2 Zac Medico gentoo-dev 2011-11-10 06:11:35 UTC
This is fixed in 2.1.10.33 and 2.2.0_alpha73.