Bug#676606: /usr/bin/debcommit: [debcommit] should figure out a commit message after "dch -r"

Raphaël Hertzog hertzog at debian.org
Fri Jun 8 07:59:54 UTC 2012


Package: devscripts
Version: 2.11.8
Severity: wishlist
File: /usr/bin/debcommit

Hello,

take the case where I have finished working on a new release. I have
just done "dch -r" to appropriately update the changelog:

┏rivendell:~/deb/core/dh-linktree (master)
┗(700)$ git diff
diff --git a/debian/changelog b/debian/changelog
index 982a3c0..f20b5ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-dh-linktree (0.3) UNRELEASED; urgency=low
+dh-linktree (0.3) unstable; urgency=low
 
   * Use File::Spec->canonpath() to standardize the paths given on input.
     Closes: #673048
@@ -9,7 +9,7 @@ dh-linktree (0.3) UNRELEASED; urgency=low
     - the most common failure
   * Update Standards-Version to 3.9.3 (no change).
 
- -- Raphaël Hertzog <hertzog at debian.org>  Fri, 08 Jun 2012 08:39:12 +0200
+ -- Raphaël Hertzog <hertzog at debian.org>  Fri, 08 Jun 2012 09:44:25 +0200
 
 dh-linktree (0.2) unstable; urgency=low
 
Unfortunately "debcommit -a" will not commit such a change.

┏rivendell:~/deb/core/dh-linktree (master)
┗(701)$ debcommit -a
debcommit: unable to determine commit message using git (do you mean "debcommit -a" or did you forget to run "git add"?)
Try using the -m flag.


I would like debcommit to figure out that this was a new release
and to automatically use the commit message "Release <package> <version>". 

I know of "debcommit -r" but I don't necessarily want to create tags
at this point. I run my test build, and I put the tag only after I have
verified that it's ok to be uploaded.

Cheers,

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
DEBRELEASE_UPLOADER=dput
DEBCHANGE_RELEASE_HEURISTIC=changelog
DEBCHANGE_MULTIMAINT_MERGE=yes
DEBCHANGE_PRESERVE=yes
DEBUILD_LINTIAN_OPTS="--color always -I"
DEBSIGN_KEYID=0xF2AC729A

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev   1.16.4+0~1338977786.64~1.gbp18f651
ii  libc6      2.13-33
ii  perl       5.14.2-11
ii  python     2.7.3~rc2-1
ii  python2.6  2.6.7-4
ii  python2.7  2.7.3~rc2-2.1

Versions of packages devscripts recommends:
ii  at                        3.1.13-1
ii  curl                      7.26.0-1
ii  dctrl-tools               2.22.2
ii  debian-keyring            2012.06.01
ii  dput                      0.9.6.3
ii  equivs                    2.0.9
ii  fakeroot                  1.18.4-2
ii  gnupg                     1.4.12-4
ii  libcrypt-ssleay-perl      0.58-1
ii  libdistro-info-perl       0.10
ii  libjson-perl              2.53-1
ii  libparse-debcontrol-perl  2.005-3
ii  libsoap-lite-perl         0.714-1
ii  liburi-perl               1.60-1
ii  libwww-perl               6.04-1
ii  lintian                   2.5.8
ii  man-db                    2.6.1-2
ii  patch                     2.6.1-3
ii  patchutils                0.3.2-1.1
ii  python-debian             0.1.21
pn  python-magic              <none>
ii  sensible-utils            0.0.7
ii  strace                    4.5.20-2.3
ii  unzip                     6.0-6
ii  wdiff                     1.1.2-1
ii  wget                      1.13.4-3
ii  xz-utils                  5.1.1alpha+20110809-3

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20111106cvs-1
ii  build-essential              11.5
pn  cvs-buildpackage             <none>
pn  devscripts-el                <none>
pn  gnuplot                      <none>
ii  libauthen-sasl-perl          2.1500-1
ii  libfile-desktopentry-perl    0.04-3
ii  libnet-smtp-ssl-perl         1.01-3
pn  libterm-size-perl            <none>
ii  libtimedate-perl             1.2000-1
ii  libyaml-syck-perl            1.20-1
ii  mutt                         1.5.21-5+b1
ii  openssh-client [ssh-client]  1:6.0p1-1
ii  svn-buildpackage             0.8.4
ii  w3m                          0.5.3-8

-- no debconf information





More information about the devscripts-devel mailing list