aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorDaniel Dehennin <daniel.dehennin@baby-gnu.org>2011-11-21 19:57:18 +0100
committerGuido Günther <agx@sigxcpu.org>2013-04-06 18:30:00 +0200
commit920053ee48d61df6166f21aa0f57e40480cc4cdc (patch)
tree930a36ad74b280050fad15f8edc7e85e34444b54 /gbp
parentae4a3683c3becac1c6dcc8efb2eececb7a630c32 (diff)
Add urgency management.
* tests/11_test_dch_main.py: test the new --urgency option to dch.main(). Add only meaningful tests, i.e. options alone and combined with --release and --snapshot. * git-dch (fixup_section): Manage "urgency" option. (main): Add version_group option "-U" and "--urgency" to set the urgency level of the entry. * docs/manpages/git-dch.sgml: Update documentation for new option.
Diffstat (limited to 'gbp')
-rw-r--r--gbp/scripts/dch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index c06fb501..66da519b 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -72,7 +72,7 @@ def fixup_section(repo, git_author, options, dch_options):
This apply --distribution and --urgency options passed to git-dch
"""
author, email = get_author_email(repo, git_author)
- used_options = ['distribution']
+ used_options = ['distribution', 'urgency']
header_opts = []
# This must not be done for snapshots or snapshots changelog entries
@@ -318,6 +318,7 @@ def main(argv):
help="Force the provided distribution to be used, even if it doesn't match the list of known distributions")
version_group.add_option("-N", "--new-version", dest="new_version",
help="use this as base for the new version number")
+ version_group.add_option("-U", "--urgency", dest="urgency", help="Set urgency level")
version_group.add_option("--bpo", dest="bpo", action="store_true", default=False,
help="Increment the Debian release number for an upload to backports, and add a backport upload changelog comment.")
version_group.add_option("--nmu", dest="nmu", action="store_true", default=False,