X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fgit-update-changelog.py;h=95c45592c901b62d15645cdd6def475043f6db5d;hb=1147504032d45c6fa74c216e1174e3268def4854;hp=23390b1127173962a6b21641c4458668ea1fc908;hpb=3e6a74d4c810fd1faf5ebf96158059e200bd5ab4;p=lilypond.git diff --git a/buildscripts/git-update-changelog.py b/buildscripts/git-update-changelog.py index 23390b1127..95c45592c9 100644 --- a/buildscripts/git-update-changelog.py +++ b/buildscripts/git-update-changelog.py @@ -121,17 +121,22 @@ def changelog_body (commit): return s def main (): - p = optparse.OptionParser (usage="usage git-update-changelog.py [options]", + p = optparse.OptionParser (usage="usage git-update-changelog.py [options] [commits]", description=""" Apply GIT patches and update change log. -Run this file from the CVS directory, with --git-dir +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="start of log messages to merge.") + help="all commits starting with FIRST.") p.add_option ("--git-dir", action='store', @@ -172,10 +177,12 @@ Run this file from the CVS directory, with --git-dir collated_log = '' collated_message = '' - + + commits_done = [] while commits: c = commits[0] commits = commits[1:] + commits_done.append (c) if not c.has_patch (): print 'patchless commit (merge?)' @@ -225,6 +232,7 @@ Run this file from the CVS directory, with --git-dir 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' + print '\n\techo %s >> .git-commits-done\n\n' % ' '.join (commits_done) if commits: