]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/git-update-changelog.py
Doc-de: updates from master
[lilypond.git] / buildscripts / git-update-changelog.py
index 35dd2e6c7538795821ed1a6abc41706578e9bead..09f0d16b7afebad8214b9463cef4076fdc5f1301 100644 (file)
@@ -44,6 +44,7 @@ class Commit:
     def compare (self, other):
         return sign (time.mktime (self.date) - time.mktime (other.date))
 
+
     def check_diff_chunk (self, filename, chunk):
         removals = []
         def note_removal (m):
@@ -53,7 +54,9 @@ class Commit:
 
         if removals == []:
             return True
-        
+        if not os.path.exists (filename):
+            return False
+
         contents = open (filename).read ()
         for r in removals:
             if r not in contents:
@@ -173,16 +176,13 @@ Apply GIT patches and update change log.
 
 Run this file from the CVS directory, with commits from the repository in --git-dir.
 
-
-
-
 """)
     p.add_option ("--start",
                   action='store',
                   default='',
                   metavar="FIRST",
                   dest="start",
-                  help="all commits starting with FIRST.")
+                  help="all commits starting with FIRST (exclusive).")
     
     p.add_option ("--git-dir",
                   action='store',
@@ -221,13 +221,13 @@ Run this file from the CVS directory, with commits from the repository in --git-
 
     try:
         previously_done = dict((c, 1) for c in open ('.git-commits-done').read ().split ('\n'))
-    except OSError:
+    except IOError:
         previously_done = {}
 
-    commits = [c for c in commits if not previously_done.has_key (c.committish)]
     commits = [c for c in commits if not previously_done.has_key (c.committish)]
     commits = sorted (commits, cmp=Commit.compare)
 
+    system ('cvs up')
     
     file_adddel = []
     collated_log = ''