From: Han-Wen Nienhuys Date: Mon, 30 Oct 2006 23:52:00 +0000 (+0100) Subject: bugfixes for git-update-changelog.py X-Git-Tag: release/2.10.0-2~35^2~7 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=28f37ab98b9032b7287fd9c0ae736e9582f8fec1;p=lilypond.git bugfixes for git-update-changelog.py --- diff --git a/buildscripts/git-update-changelog.py b/buildscripts/git-update-changelog.py index fba7c65f23..a1cb3cf2f9 100644 --- a/buildscripts/git-update-changelog.py +++ b/buildscripts/git-update-changelog.py @@ -150,7 +150,9 @@ Run this file from the CVS directory, with --git-dir log = log[len (first):] file_adddel = [] - final_log = '' + + collated_log = '' + collated_message = '' for c in commits: print 'patch ', c.committish @@ -168,14 +170,13 @@ Run this file from the CVS directory, with --git-dir new_log += header (last_commit) - new_log = changelog_body (c) + new_log + collated_log = changelog_body (c) + collated_log last_commit = c -# FIXME: correct fix? -# final_log += self.message + '\n' - final_log += log - + collated_message += c.message + '\n' + + for (op, f) in file_adddel: if op == 'del': system ('cvs remove %(f)s' % locals ()) @@ -183,9 +184,9 @@ Run this file from the CVS directory, with --git-dir system ('cvs add %(f)s' % locals ()) if last_commit: - new_log = header (last_commit) + new_log + '\n' + collated_log = header (last_commit) + collated_log + '\n' - log = new_log + log + log = collated_log + log try: os.unlink ('ChangeLog~') @@ -195,8 +196,9 @@ Run this file from the CVS directory, with --git-dir os.rename ('ChangeLog', 'ChangeLog~') open ('ChangeLog', 'w').write (log) - open ('.msg','w').write (final_log) - print 'cvs commit -F .msg ' + open ('.msg','w').write (collated_message) + print '\nCommit message\n**\n%s\n**\n' % collated_message + print '\nRun:\n\n\tcvs commit -F .msg\n\n' main ()