]> git.donarmstrong.com Git - lilypond.git/commitdiff
(main): write .msg and cvs command.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 23:02:28 +0000 (23:02 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 23:02:28 +0000 (23:02 +0000)
buildscripts/git-update-changelog.py

index 135237beca5f545df4a46c45b666e023266c7dc9..6a9d7489b9c35b55cd715faccf4c937578b85a45 100644 (file)
@@ -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 ()