summaryrefslogtreecommitdiff
path: root/gbp/scripts/dch.py
AgeCommit message (Collapse)Author
2013-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-08-21dch: make automatic adding of new sections more robustGuido Günther
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ünther
This fixes a problem when running git-dch form a detached HEAD
2013-04-29dch: Use DebianSource.is_nativeGuido Günther
instead of ChangeLog.is_native since the former used debian/source/format in favor of debian/changelog.
2013-04-06Add urgency management.Daniel Dehennin
* 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 Dehennin
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 Dehennin
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ünther
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ünther
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 Lehtonen
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ünther
2012-08-13dch: Fix error reporting on parsing errorsGuido Günther
2012-07-31Remove multiple spacesGuido Günther
2012-07-02Make exception syntax consistentGuido Günther
2012-06-30GitRepository: return GitModifier object instead of separate fieldsGuido Günther
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ünther
Thanks: Salvatore Bonaccorso
2012-05-20git-dch: Add support for --team switch for Team uploadsSalvatore Bonaccorso
Closes: #673368 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-19Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman
Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-02-13Refactor config.py as preparation for rpm support.Markus Lehtonen
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ünther
Closes: #652366 Thanks: a lot to Daniel Dehennin for the testcase
2011-12-28dch: Split guessing of upstream version into separate functionGuido Günther
2011-12-27GitRepository: Add num option to git_commitsGuido Günther
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ünther
2011-12-27dch: Add doctests for snapshot_versionGuido Günther
2011-12-26dch: fix epydoc parametersGuido Günther
2011-12-16Move debian specific functions from GitRepository to DebianGitRepositoryGuido Günther
2011-11-28Add ChangeLog classGuido Günther
making it easier to query versions. Add tests.
2011-11-01Get rid of the symlinkGuido Günther
by moving the commands to gbp/scripts/