Am Sonntag, 21. Dezember 2014, 16:09:15 schrieb Giuseppe Scrivano: > Hi, > > the two attached patches make sure that the ChangeLog file is generated > by the git commit messages. I've attached them as compressed .xz > instead of sending them directly to the mailing list as the first commit > moves around a lot of lines and it is more than 1M once uncompressed. > > The first commit is generated mechanically, after I cleaned up a bit the > old ChangeLog files (mostly to make sure everything is indented with > tabs instead of spaces) and fixed the file names to include the parent > directory where they were included. > > Then I've used these few python lines to sort it: > > ############################################################## > import sys > > records = [] > current = '' > for line in sys.stdin: > if line != '\n' and line[0] != '\t': > if current: > records.append(current) > current = line > else: > current = current + line > if current: > records.append(current) > > records.sort() > for i in reversed(records): > print i, > ##############################################################
Cool ! It works for me. Two little (cosmetic) things that popped up: There is a date failure in the old tests/ChangeLog (it is the first entry in ChangeLog-2014-12-10: 2014-40-22 should be 2014-04-22). And there should be an empty line between between the 'git log' entries and the 'old ChangeLog' entries. Tim
signature.asc
Description: This is a digitally signed message part.
