#981043 git-buildpackage: dch: Please support --distribution for snapshots (or at least properly document --distribution)

#981043#5
Date:
2021-01-25 17:40:38 UTC
From:
To:
Dear Maintainer, Guido,

in snapshot mode, header options --distribution (and --urgency) are deliberately
not honored in-code (scripts/dch.py):
---
# This must not be done for snapshots or snapshots changelog entries
# will not be concatenated
if not options.snapshot:
    ...
---

Afaiu, this comment means when doing a second 'dch --snapshot' (with a custom, not
UNRELEASED distribution), it would create another CL rather than combining with the
latter.

I.e., with the restriction in place, the valid use case to set the distribution is
denied -- however, *without* the restriction, the old behaviour can be achieved (just
don't specify --distribution), and those who want to set a distribution are also happy.

(Documentation may be updated that 'dch --snapshot' behaves slightly different when not using dist=UNRELEASED.)

I am using it locally here with that restriction removed, and not seen any
odd behaviour. But may be I do not get the full picture here?

Thx!

Stephan