From: Han-Wen Nienhuys Date: Sat, 28 Oct 2006 23:02:28 +0000 (+0000) Subject: (main): write .msg and cvs command. X-Git-Tag: release/2.10.0-2~42^2~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff7674626e0bc514777052d8c30daaebc7cf508b;p=lilypond.git (main): write .msg and cvs command. --- diff --git a/buildscripts/git-update-changelog.py b/buildscripts/git-update-changelog.py index 135237beca..6a9d7489b9 100644 --- a/buildscripts/git-update-changelog.py +++ b/buildscripts/git-update-changelog.py @@ -101,7 +101,6 @@ def header (commit): def changelog_body (commit): - s = '\n' s += ''.join ('\n* %s: ' % f for f in commit.touched_files()) s += '\n' + commit.message @@ -151,6 +150,8 @@ Run this file from the CVS directory, with --git-dir log = log[len (first):] file_adddel = [] + final_log = '' + for c in commits: print 'patch ', c.committish try: @@ -169,6 +170,9 @@ Run this file from the CVS directory, with --git-dir new_log += changelog_body (c) last_commit = c + + final_log += self.message + '\n' + for (op, f) in file_adddel: if op == 'del': @@ -187,6 +191,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 ' main ()