Add option to manage distribution fields for non snapshot mode.
authorDaniel Dehennin <daniel.dehennin@baby-gnu.org>
Mon, 21 Nov 2011 14:44:41 +0000 (15:44 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sat, 6 Apr 2013 16:29:52 +0000 (18:29 +0200)
commitae4a3683c3becac1c6dcc8efb2eececb7a630c32
treeb8d9828d8c4c480440c293654f2b3f1043193f7c
parent733573511a77bd2fdbbff61b9bd62b40ad63eac2
Add option to manage distribution fields for non snapshot mode.

The snapshot mode fails to merge two "debian/changelog" entries if the
distribution is not "UNRELEASED".

* tests/11_test_dch_main.py: test the new --distribution option to
  dch.main(). Add only meaningful tests, i.e. options alone and combined
  with --release and --snapshot.

* git-dch (fixup_section): Rename as it's used to fix header in addition
  to trailer, this require a new named parameter "options".
  (main): Add version_group option "-D" and "--distribution" to
  specify the distribution name.
  Add version_group option "--force-distribution" to force the provided
  distribution to be used, used by "dch".
  Rename fixup_trailer() to fixup_section() and add options as parameters.

* docs/manpages/git-dch.sgml: Update documentation for new options.

Closes: #646684
docs/manpages/git-dch.sgml
gbp/scripts/dch.py
tests/11_test_dch_main.py