#926553 git-buildpackage: gbp-dch resets the urgency when updating a changelog entry

#926553#5
Date:
2019-04-06 20:41:57 UTC
From:
To:
Hi,

When running `gbp dch` and the changelog contains an UNRELEASED entry, the entry
is updated but its urgency is reset to `medium`, despite preserving the comment:

  $ git status
  [...]
  nothing to commit, working tree clean

  $ gbp dch --full
  gbp:info: Changelog last touched at '4b2e728aa5b340bb912d407e0a381a2e70fee792'
  gbp:info: No changes detected from 4b2e728aa5b340bb912d407e0a381a2e70fee792 to HEAD.

  $ git diff
  diff --git i/debian/changelog w/debian/changelog
  index 91eb7d7..789bd6e 100644
  --- i/debian/changelog
  +++ w/debian/changelog
  @@ -1,4 +1,4 @@
  -yubico-piv-tool (1.7.0-1) UNRELEASED; urgency=high (security fixes)
  +yubico-piv-tool (1.7.0-1) UNRELEASED; urgency=medium (security fixes)

     [ Nicolas Braud-Santoni ]
     * New upstream version 1.7.0
  @@ -28,7 +28,7 @@ yubico-piv-tool (1.7.0-1) UNRELEASED; urgency=high (security fixes)
     [ Simon Josefsson ]
     * Drop myself from Uploaders.

  - -- Nicolas Braud-Santoni <nicoo@debian.org>  Sat, 06 Apr 2019 22:26:01 +0200
  + -- Nicolas Braud-Santoni <nicoo@debian.org>  Sat, 06 Apr 2019 22:41:01 +0200

 yubico-piv-tool (1.6.2-1) unstable; urgency=high


Best,

  nicoo