summaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
AgeCommit message (Collapse)AuthorFilesLines
2016-01-27meta-closes: Move help text to GbpOptionParser.helpGuido Günther1-2/+1
2016-01-26Unify doc strings a bitGuido Günther1-1/+1
since they now show up with --list-cmds
2016-01-26dch: Only modify the mainttrailer when --git-author is in useBla Fasel1-5/+6
2016-01-26Use better variable nameBla Fasel1-7/+7
It's a boolean indicating wether we fetch the author information from git not the author information itself. Git-Dch: Ignore
2016-01-26Brown paper bag, pleaseBla Fasel1-2/+2
Gbp-Dch: Ignore
2016-01-26Make sure we fixup the changelog trailer with newer devscriptsGuido Günther1-4/+11
We don't change any mainttrailer options if already given. Thanks: James McCoy for the detailed explanation Closes: #740566
2014-06-05Rename internal var debian_tag -> packaging_tagMarkus Lehtonen1-3/+3
This is done in sake of more general purpose naming, intended for enabling rpm support: to allow logical naming for rpm and to share as much code between debian and rpm tools as possible. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-06-05Rename internal var debian_branch -> packaging_branchMarkus Lehtonen1-4/+6
This is done in sake of more general purpose naming, intended for enabling rpm support. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-05-16Fix comitter vs committer typosGuido Günther1-1/+1
Thanks: Sandro Tosi Closes: #748339
2014-04-03config: add decorator to add_option_* functionsGuido Günther1-10/+25
This allows us to build an internal list of valid options and print these.
2014-03-29Use a much simpler version to fix the command name in --helpGuido Günther1-1/+2
mostly reverting e1780f0. Closes: #742907
2014-03-27Fix command outputGuido Günther1-2/+1
The first line lacked the subcommand like: $ gbp pull --help Usage: gbp [options] - safely update a repository from remote instead of $ gbp pull --help Usage: gbp pull [options] - safely update a repository from remote ^^^^
2013-08-28Use open() instead of file()Guido Günther1-2/+2
since the later doesn't exist in python3
2013-08-21dch: make automatic adding of new sections more robustGuido Günther1-19/+38
This code that determined if we found a snapshot header was obuscated by the code that determines the commits to add. Split those and better document their purpose. Also always return the commit to start from so we don't need to repeat the logic in the uper levels.
2013-05-02dch: make sure branch is always definedGuido Günther1-0/+1
This fixes a problem when running git-dch form a detached HEAD
2013-04-29dch: Use DebianSource.is_nativeGuido Günther1-3/+9
instead of ChangeLog.is_native since the former used debian/source/format in favor of debian/changelog.
2013-04-06Add urgency management.Daniel Dehennin1-1/+2
* tests/11_test_dch_main.py: test the new --urgency option to dch.main(). Add only meaningful tests, i.e. options alone and combined with --release and --snapshot. * git-dch (fixup_section): Manage "urgency" option. (main): Add version_group option "-U" and "--urgency" to set the urgency level of the entry. * docs/manpages/git-dch.sgml: Update documentation for new option.
2013-04-06Add option to manage distribution fields for non snapshot mode.Daniel Dehennin1-4/+25
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
2013-03-29Move debian/changelog manipulation to gbp.deb.changelog.ChangeLog.Daniel Dehennin1-99/+23
spawn_dch switch gbp.command.wrappers.Command. * gbp/deb/changelog.py (ChangeLog.spawn_dch): static method adapted from gbp.scripts.dch and converted to gbp.command_wrappers.Command. (add_entry): New method adapted from gbp.scripts.dch.add_changelog_entry. (add_section): New method adapted from gbp.scripts.dch.add_changelog_entry. Remove DebianGitRepository and options, this has nothing to do with changelog management. * tests/test_Changelog.py: Test new methods. * gbp/scripts/dch.py: Remove useless functions: system(), spawn_dch(), add_changelog_section() and add_changelog_entry(). Update calls accordingly. (fixup_trailer): Use spawn_dch() method of ChangeLog class. (process_options): dch_options became a list. (main): Use add_section() and add_entry() methods of ChangeLog object. Take care of upstream version since ChangeLog.add_section() does not manage it anymore. Update exception handling, ChangeLog.spawn_dch() can raise "CommandExecFailed" exception. Closes: #672954
2013-03-27Split out building a debian version from an upstream commitGuido Günther1-10/+6
based on a patch by Daniel Dehennin Needed for #672954, #646684, #669171
2012-11-25git-dch: Allow to create changelogs when not on a branchGuido Günther1-2/+7
This makes snapshot changelog generation e.g. within jenkins builds simpler since jenkins by defaults checkouts out the commit without creating a branch.
2012-11-25New configuration option for setting the output color schemeMarkus Lehtonen1-1/+3
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-10-25Add support dch's --security optionGuido Günther1-1/+6
2012-08-13dch: Fix error reporting on parsing errorsGuido Günther1-1/+1
2012-07-31Remove multiple spacesGuido Günther1-5/+5
2012-07-02Make exception syntax consistentGuido Günther1-7/+7
2012-06-30GitRepository: return GitModifier object instead of separate fieldsGuido Günther1-2/+2
this make sure the number of return values doesn't stays sane when also returning timestamps and committer information.
2012-05-20Don't explicitly refer to lenny-backportsGuido Günther1-1/+1
Thanks: Salvatore Bonaccorso
2012-05-20git-dch: Add support for --team switch for Team uploadsSalvatore Bonaccorso1-1/+5
Closes: #673368 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-19Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman1-1/+18
Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-02-13Refactor config.py as preparation for rpm support.Markus Lehtonen1-3/+3
Split GbpOptionParser in to a common base class and a Debian specific subclass, as a preparation for upcoming RPM support. This allows having different default values (and help texts) for common options between different package types, and, clearer separation of package type specific options. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2011-12-28dch: Honor epoch when guessing new upstream versionGuido Günther1-7/+8
Closes: #652366 Thanks: a lot to Daniel Dehennin for the testcase
2011-12-28dch: Split guessing of upstream version into separate functionGuido Günther1-16/+24
2011-12-27GitRepository: Add num option to git_commitsGuido Günther1-4/+3
to limit number of returned commits and fix path option to also accept a list of paths instead of a string.
2011-12-27dch: Indentation and docstring cleanupsGuido Günther1-23/+34
2011-12-27dch: Add doctests for snapshot_versionGuido Günther1-1/+9
2011-12-26dch: fix epydoc parametersGuido Günther1-7/+7
2011-12-16Move debian specific functions from GitRepository to DebianGitRepositoryGuido Günther1-3/+3
2011-11-28Add ChangeLog classGuido Günther1-5/+6
making it easier to query versions. Add tests.
2011-11-01Get rid of the symlinkGuido Günther1-0/+500
by moving the commands to gbp/scripts/