From bb32e945ad8cbf5963f97ad0ca95b275915c7dbe Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Fri, 18 May 2012 14:44:37 +0200 Subject: git-dch: Add support for --team switch for Team uploads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #673368 Signed-off-by: Guido Günther --- docs/manpages/git-dch.sgml | 7 +++++++ gbp/scripts/dch.py | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/manpages/git-dch.sgml b/docs/manpages/git-dch.sgml index 6449ecda..573d6b2c 100644 --- a/docs/manpages/git-dch.sgml +++ b/docs/manpages/git-dch.sgml @@ -39,6 +39,7 @@ + @@ -190,6 +191,12 @@ newversion. + + + + Create a Team upload changelog entry. + + git-log-options diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py index 14dff295..0a695109 100644 --- a/gbp/scripts/dch.py +++ b/gbp/scripts/dch.py @@ -382,6 +382,8 @@ def main(argv): help="Increment the Debian release number for a non-maintainer upload") version_group.add_option("--qa", dest="qa", action="store_true", default=False, help="Increment the Debian release number for a Debian QA Team upload, and add a QA upload changelog comment.") + version_group.add_option("--team", dest="team", action="store_true", default=False, + help="Increment the Debian release number for a Debian Team upload, and add a Team upload changelog comment.") version_group.add_boolean_config_file_option(option_name="git-author", dest="git_author") commit_group.add_boolean_config_file_option(option_name="meta", dest="meta") commit_group.add_config_file_option(option_name="meta-closes", dest="meta_closes", @@ -448,13 +450,15 @@ def main(argv): commits.reverse() # add a new changelog section if: - if options.new_version or options.bpo or options.nmu or options.qa: + if options.new_version or options.bpo or options.nmu or options.qa or options.team: if options.bpo: version_change['increment'] = '--bpo' elif options.nmu: version_change['increment'] = '--nmu' elif options.qa: version_change['increment'] = '--qa' + elif options.team: + version_change['increment'] = '--team' else: version_change['version'] = options.new_version # the user wants to force a new version -- cgit v1.2.3