Bug#673974: dch --increment does not create new section

2012-05-23 Thread Marc Haber
On Tue, May 22, 2012 at 08:23:35PM -0400, James McCoy wrote:
 DEBCHANGE_RELEASE_HEURISTIC's default was changed to changelog.  When
 it's changelog, then -i and -v just update the existing changelog stanza
 if the distribution is UNRELEASED.
 
 I'd consider this desirable behavior and something we should document
 better.

Agreed. Documenting the behavior if it's intended is an acceptable fix.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 31958062



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#673974: dch --increment does not create new section

2012-05-22 Thread Marc Haber
Package: devscripts
Version: 2.11.7
Severity: normal
File: /usr/bin/debchange

Hi,

dch --increment is documented as

   --increment, -i
  Increment either the final component of the Debian release  num‐
  ber  or, if this is a native Debian package, the version number.
  This creates a new section at the  beginning  of  the  changelog
  with  appropriate  headers  and footers.

This behavior has recently changed:

[62/557]mh@salida:~/tmp$ cat debian/control
Package: package
[63/558]mh@salida:~/tmp$ cat debian/changelog
package (1.0-1) UNRELEASED; urgency=low

  * Initial release. (Closes: #XX)

 -- Marc Haber mh+debian-packa...@zugschlus.de  Tue, 22 May 2012 12:34:31 
+0200
[64/559]mh@salida:~/tmp$ dch --increment quit editor after typing a space
Use of uninitialized value $_ in string eq at /usr/bin/dch line 764.
[65/560]mh@salida:~/tmp$ cat debian/changelog
package (1.0-2) UNRELEASED; urgency=low

  * Initial release. (Closes: #XX)
  *

 -- Marc Haber mh+debian-packa...@zugschlus.de  Tue, 22 May 2012 12:36:19 
+0200
[66/561]mh@salida:~/tmp$

I would have expected dch to leave the changelog entry for version
1.0-1 intact while creating a new one for 1.0-2

Greetings
Marc


-- Package-specific info:

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

--- ~/.devscripts ---
DEBUILD_LINTIAN=no
DEBUILD_ROOTCMD=fakeroot
DEBUILD_DPKG_BUILDPACKAGE_OPTS=-us -uc
DEBUILD_PRESERVE_ENVVARS=buildbasepackages,extradaemonpackages
DPKGSIG_SIGN_CHANGES=force_full
DPKGSIG_CACHE_PASS=1
DEBSIGN_KEYID=mh+debian-packa...@zugschlus.de
DEBCHANGE_MULTIMAINT=no
BTS_SENDMAIL_COMMAND=/usr/sbin/exim4 -f mh+debian-packa...@zugschlus.de
BTS_INTERACTIVE=force

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.6-zgsrv20080 (SMP w/6 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev   1.16.3
ii  libc6  2.13-32
ii  perl   5.14.2-10
ii  python 2.7.2-10
ii  python2.6  2.6.7-4
ii  python2.7  2.7.3~rc2-2.1

Versions of packages devscripts recommends:
ii  atnone
ii  curl  7.25.0-1
ii  dctrl-tools   2.22
ii  debian-keyring2012.02.22
ii  dput  0.9.6.3
ii  equivs2.0.9
ii  fakeroot  1.18.3-1
ii  gnupg 1.4.12-4
ii  libcrypt-ssleay-perl  none
ii  libjson-perl  none
ii  libparse-debcontrol-perl  2.005-3
ii  libsoap-lite-perl none
ii  liburi-perl   1.60-1
ii  libwww-perl   6.04-1
ii  lintian   2.5.7
ii  man-db2.6.1-2
ii  patch 2.6.1-3
ii  patchutils0.3.2-1.1
ii  python-debian 0.1.21
ii  python-magic  none
ii  sensible-utils0.0.7
ii  strace4.5.20-2.3
ii  unzip 6.0-6
ii  wdiff 1.1.0-2
ii  wget  1.13.4-3
ii  xz-utils  5.1.1alpha+20110809-3

Versions of packages devscripts suggests:
pn  bsd-mailx [mailx]8.1.2-0.2006cvs-1
pn  build-essential  11.5
pn  cvs-buildpackage none
pn  devscripts-elnone
pn  gnuplot  none
pn  libauthen-sasl-perl  none
pn  libfile-desktopentry-perlnone
pn  libnet-smtp-ssl-perl none
pn  libterm-size-perlnone
pn  libtimedate-perl 1.2000-1
pn  libyaml-syck-perlnone
pn  mutt 1.5.21-5+b1
pn  openssh-client [ssh-client]  1:5.9p1-5
pn  svn-buildpackage none
pn  w3m  none

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#673974: dch --increment does not create new section

2012-05-22 Thread James McCoy
On Tue, May 22, 2012 at 12:40:41PM +0200, Marc Haber wrote:
 dch --increment is documented as
 
--increment, -i
   Increment either the final component of the Debian release  num‐
   ber  or, if this is a native Debian package, the version number.
   This creates a new section at the  beginning  of  the  changelog
   with  appropriate  headers  and footers.
 
 This behavior has recently changed:

DEBCHANGE_RELEASE_HEURISTIC's default was changed to changelog.  When
it's changelog, then -i and -v just update the existing changelog stanza
if the distribution is UNRELEASED.

I'd consider this desirable behavior and something we should document
better.

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy james...@debian.org


signature.asc
Description: Digital signature