X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fgit-update-changelog.py;h=09f0d16b7afebad8214b9463cef4076fdc5f1301;hb=4e6d37762f033a5d89afc0b0848ef42914f7318f;hp=e3bc06384fcc7bacadfd4c63686b9fdfea063702;hpb=11e51db60bc5e0701ed76d1b48c688ae2054e675;p=lilypond.git diff --git a/buildscripts/git-update-changelog.py b/buildscripts/git-update-changelog.py index e3bc06384f..09f0d16b7a 100644 --- a/buildscripts/git-update-changelog.py +++ b/buildscripts/git-update-changelog.py @@ -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,10 +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: @@ -176,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', @@ -224,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 = ''