summaryrefslogtreecommitdiff
path: root/gbp/deb/changelog.py
AgeCommit message (Collapse)Author
2015-02-20Don't use print as a statementGuido Günther
via 2to3-3.4 -w -f print . to work towards python3 support Gbp-Dch: Ignore
2015-02-17git-dch --git-author: separate author and emailDmitrij Tejblum
Allow --git-author to work if either author or email is not specified in the git config, taking the other config option into account.
2013-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-04-29ChangeLog: Remove is_nativeGuido Günther
to avoid accidental usage. Use DebianSource.is_native instead.
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
2012-07-02Make exception syntax consistentGuido Günther
2012-05-20gbp.deb.ChangeLog: Add filename propertyGuido Günther
2012-05-20gbp.deb.changelog: Split parsing into a separate functionGuido Günther
this will allow us to reparse the changelog after manipulation with dch.
2012-05-15Add gbp.deb.ChangeLogSectionGuido Günther
to parse package and version out of a changelog section
2012-03-15deb.changelog: allow to extract author and dateGuido Günther
2012-01-22deb.changelog: add name propertyGuido Günther
2011-11-28Add ChangeLog classGuido Günther
making it easier to query versions. Add tests.