From: Han-Wen Nienhuys Date: Wed, 1 Nov 2006 16:51:00 +0000 (+0100) Subject: log vc commits done too. X-Git-Tag: release/2.10.0-2~34^2~45 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1147504032d45c6fa74c216e1174e3268def4854;p=lilypond.git log vc commits done too. --- 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: