tools/git-buildpackage.git
12 years agoDocument changes and release 0.6.0~git20120419 debian/0.6.0_git20120419
Guido Günther [Wed, 18 Apr 2012 22:24:39 +0000 (00:24 +0200)]
Document changes and release 0.6.0~git20120419

12 years agoBug#669145: [PATCH] Add git-dch --commit and --commit-msg options
Matthijs Kooijman [Tue, 17 Apr 2012 20:17:20 +0000 (22:17 +0200)]
Bug#669145: [PATCH] Add git-dch --commit and --commit-msg options

Closes: #669145

Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoRefactor git-import-orig as preparation for rpm support
Markus Lehtonen [Thu, 12 Jan 2012 13:44:23 +0000 (15:44 +0200)]
Refactor git-import-orig as preparation for rpm support

Separate some functions of git-import-orig into a baselib, intended to
be re-used by the upcoming rpm variant of the tool.

12 years agoimport-orig: refactor args of ask_package_* functions
Markus Lehtonen [Thu, 12 Jan 2012 13:24:42 +0000 (15:24 +0200)]
import-orig: refactor args of ask_package_* functions

Makes ask_package_name() and ask_package_version() more generic and
re-usable in the upcoming RPM-tools.

12 years agoRefactor git-buildpackage as preparation for rpm support
Markus Lehtonen [Thu, 12 Jan 2012 13:42:42 +0000 (15:42 +0200)]
Refactor git-buildpackage as preparation for rpm support

Separate some functions of git-buildpackage into a basemodule, intended
to be re-used by the upcoming rpm variant of the tool.

12 years agoRefactor gbp-pq as preparation for rpm support
Markus Lehtonen [Thu, 12 Jan 2012 13:41:46 +0000 (15:41 +0200)]
Refactor gbp-pq as preparation for rpm support

Separate some functions of gbp-pq into a basemodule, intended to be
re-used by the upcoming rpm variant of the tool.

Also, introduces a new python subpackage gbp.scripts.common to be used
for the re-usable parts of the scripts in the refactoring work.

12 years agodocs: add some missing tags to sgml files
Markus Lehtonen [Thu, 12 Apr 2012 11:28:59 +0000 (14:28 +0300)]
docs: add some missing tags to sgml files

12 years agoGit-Dch: Full in commit messages
Matthijs Kooijman [Tue, 17 Apr 2012 20:41:48 +0000 (22:41 +0200)]
Git-Dch: Full in commit messages

This new tag makes git-dch use the full commit message when generating
the Debian changelog file, even when --full is not given.

Closes: #669159

Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoMake building with DEB_BUILD_OPTIONS=nocheck skip all tests
Guido Günther [Wed, 18 Apr 2012 06:14:40 +0000 (08:14 +0200)]
Make building with DEB_BUILD_OPTIONS=nocheck skip all tests

heavily based on a patch by Matthijs Kooijman

12 years agoDocument changes and release 0.6.0~git20120415 debian/0.6.0_git20120415
Guido Günther [Sun, 15 Apr 2012 17:06:10 +0000 (19:06 +0200)]
Document changes and release 0.6.0~git20120415

12 years agoIgnore locale when checking for a clean repository
Guido Günther [Sun, 15 Apr 2012 17:04:48 +0000 (19:04 +0200)]
Ignore locale when checking for a clean repository

Closes: #668896

12 years agoMake the upstream version check match policy
Guido Günther [Thu, 12 Apr 2012 21:03:21 +0000 (23:03 +0200)]
Make the upstream version check match policy

Closes: #668554

12 years agodocs: correct --git-builder default value
Jö Fahlke [Thu, 12 Apr 2012 18:47:54 +0000 (20:47 +0200)]
docs: correct --git-builder default value

Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoALlow to set the output directory via GIT_PBUILDER_OUTPUT_DIR
Guido Günther [Tue, 10 Apr 2012 09:39:09 +0000 (11:39 +0200)]
ALlow to set the output directory via GIT_PBUILDER_OUTPUT_DIR

Helps with #657277

12 years agogbp.git.repository: don't append a second .git
Guido Günther [Thu, 5 Apr 2012 12:49:58 +0000 (14:49 +0200)]
gbp.git.repository: don't append a second .git

when mirroring a repository

12 years agoDocument changes and release 0.6.0~git20120404 debian/0.6.0_git20120404
Guido Günther [Wed, 4 Apr 2012 16:51:08 +0000 (18:51 +0200)]
Document changes and release 0.6.0~git20120404

12 years agogbp-add-patch: Fix typo
Guido Günther [Wed, 28 Mar 2012 11:56:05 +0000 (13:56 +0200)]
gbp-add-patch: Fix typo

12 years agogbp-posttag-push: Tighten branch regexp
Guido Günther [Tue, 27 Mar 2012 19:46:32 +0000 (21:46 +0200)]
gbp-posttag-push: Tighten branch regexp

so we don't push to branches ending with the same name accidentally.

12 years agoStart documenting useful options when upstream uses git.
Guido Günther [Sat, 24 Mar 2012 12:27:31 +0000 (13:27 +0100)]
Start documenting useful options when upstream uses git.

This is quiet terse yet so follow up bugs are welcome.

Closes: #664771

12 years agodocs: add --git-upstream-tag to git-buildpackage's manpage
Guido Günther [Sat, 24 Mar 2012 11:48:29 +0000 (12:48 +0100)]
docs: add --git-upstream-tag to git-buildpackage's manpage

12 years agoDocument changes and release 0.6.0~git20120324 debian/0.6.0_git20120324
Guido Günther [Fri, 23 Mar 2012 23:00:40 +0000 (00:00 +0100)]
Document changes and release 0.6.0~git20120324

12 years agogit-import-orig: Allow to pass in an upstream vcs tag
Guido Günther [Fri, 23 Mar 2012 19:55:57 +0000 (20:55 +0100)]
git-import-orig: Allow to pass in an upstream vcs tag

This allows to link the import-orig commit with the corresponding
upstream vcs tag. See #664771 for a discussion.

12 years agogbp-create-remote-repo: add --remote-config
Guido Günther [Wed, 21 Mar 2012 08:52:34 +0000 (09:52 +0100)]
gbp-create-remote-repo: add --remote-config

This specifies an additional config file section that can be used
to preconfigure different remote locations.

12 years agogbp.config: add list of config file sections to constructor
Guido Günther [Wed, 21 Mar 2012 22:17:29 +0000 (23:17 +0100)]
gbp.config: add list of config file sections to constructor

This makes it possible to parse additional mandatory sections
from config files to prefill defaults.

Git-Dch: Ignore

12 years agogbp-create-remote-repo: move option parsing to separate function
Guido Günther [Wed, 21 Mar 2012 21:43:42 +0000 (22:43 +0100)]
gbp-create-remote-repo: move option parsing to separate function

Git-Dch: Ignore

12 years agogbp.confing: add docstring
Guido Günther [Wed, 21 Mar 2012 08:58:33 +0000 (09:58 +0100)]
gbp.confing: add docstring

Git-Dch: Ignore

12 years agogbp create-remote-repo: allow to pass template directory
Guido Günther [Mon, 19 Mar 2012 13:46:05 +0000 (14:46 +0100)]
gbp create-remote-repo: allow to pass template directory

to git init so it's possible to set up remote hooks.

12 years agogbp-create-remote-repo: Cleanup raise statements
Guido Günther [Tue, 20 Mar 2012 07:51:07 +0000 (08:51 +0100)]
gbp-create-remote-repo: Cleanup raise statements

Git-Dch: Ignore

12 years agoGitRepository.clone(): document missing options
Guido Günther [Mon, 19 Mar 2012 13:37:29 +0000 (14:37 +0100)]
GitRepository.clone(): document missing options

12 years agoGitRepository.create(): use GitArgs
Guido Günther [Mon, 19 Mar 2012 13:29:02 +0000 (14:29 +0100)]
GitRepository.create(): use GitArgs

Git-Dch: Ignore

12 years agogbp-create-remote-repo: test generated config
Guido Günther [Mon, 19 Mar 2012 13:22:52 +0000 (14:22 +0100)]
gbp-create-remote-repo: test generated config

Git-Dch: Ignore

12 years agogbp-create-remote-repo: improve remote script readability
Guido Günther [Mon, 19 Mar 2012 13:10:45 +0000 (14:10 +0100)]
gbp-create-remote-repo: improve remote script readability

Git-Dch: Ignore

12 years agogbp-create-remote-repo: make command and script generation testable
Guido Günther [Mon, 19 Mar 2012 13:01:43 +0000 (14:01 +0100)]
gbp-create-remote-repo: make command and script generation testable

12 years agogbp-create-remote-repo: allow to use local file transport too
Guido Günther [Sun, 18 Mar 2012 16:27:56 +0000 (17:27 +0100)]
gbp-create-remote-repo: allow to use local file transport too

12 years agogbp-create-remote-repo: don't expect a terminal
Guido Günther [Sun, 18 Mar 2012 16:43:16 +0000 (17:43 +0100)]
gbp-create-remote-repo: don't expect a terminal

so you can do 'echo y | gbp-create-remote-repo'

12 years agogbp-create-remote-repo: Use DebianGitRepository
Guido Günther [Sun, 18 Mar 2012 16:15:13 +0000 (17:15 +0100)]
gbp-create-remote-repo: Use DebianGitRepository

Closes: #664283

12 years agoDocument changes and release 0.6.0~git20120315 debian/0.6.0_git20120315
Guido Günther [Thu, 15 Mar 2012 21:40:10 +0000 (22:40 +0100)]
Document changes and release 0.6.0~git20120315

12 years agoParse author and comitter from changelog for native package too
Guido Günther [Thu, 15 Mar 2012 21:21:12 +0000 (22:21 +0100)]
Parse author and comitter from changelog for native package too

Closes: #662993

12 years agoGitModifier: add __getitem__ and keys()
Guido Günther [Thu, 15 Mar 2012 21:08:50 +0000 (22:08 +0100)]
GitModifier: add __getitem__ and keys()

so it can be used as dictonary

12 years agodeb.changelog: allow to extract author and date
Guido Günther [Thu, 15 Mar 2012 20:19:48 +0000 (21:19 +0100)]
deb.changelog: allow to extract author and date

12 years agodocs: Fix path to gbp-configure-unpatched-source
Guido Günther [Thu, 15 Mar 2012 19:09:58 +0000 (20:09 +0100)]
docs: Fix path to gbp-configure-unpatched-source

Thanks: Tobias Frost

12 years agoDocument changes and release 0.6.0~git20120311 debian/0.6.0_git20120311
Guido Günther [Sun, 11 Mar 2012 18:23:52 +0000 (19:23 +0100)]
Document changes and release 0.6.0~git20120311

12 years agoMove gbp.conf manpage to section 5 and add references
Guido Günther [Sun, 11 Mar 2012 18:10:02 +0000 (19:10 +0100)]
Move gbp.conf manpage to section 5 and add references

from the other manpages

12 years agoDocument changes and release 0.6.0~git20120227
Guido Günther [Thu, 8 Mar 2012 17:57:42 +0000 (18:57 +0100)]
Document changes and release 0.6.0~git20120227

12 years agogit-import-dscs: allow to ignore gbp.conf files stored in the repository
Guido Günther [Thu, 8 Mar 2012 17:17:51 +0000 (18:17 +0100)]
git-import-dscs: allow to ignore gbp.conf files stored in the repository

Closes: #660898

12 years agodocs: Mention --help and commands that can't be configured via gbp.conf
Guido Günther [Thu, 8 Mar 2012 17:08:30 +0000 (18:08 +0100)]
docs: Mention --help and commands that can't be configured via gbp.conf

Git-Dch: Ignore

12 years agoGbpOptionParser: allow to modify list of parsed conf files
Guido Günther [Thu, 8 Mar 2012 13:54:22 +0000 (14:54 +0100)]
GbpOptionParser: allow to modify list of parsed conf files

by setting the GBP_CONF_FILES environment variable.

12 years agoBump standards version to 3.9.3
Guido Günther [Thu, 8 Mar 2012 16:51:46 +0000 (17:51 +0100)]
Bump standards version to 3.9.3

12 years agoRemove build/ directory
Guido Günther [Thu, 8 Mar 2012 16:49:01 +0000 (17:49 +0100)]
Remove build/ directory

during clean so we don't step on any epydoc leftovers

12 years agoBuild-require a git version that supports --no-edit
Guido Günther [Thu, 8 Mar 2012 16:46:10 +0000 (17:46 +0100)]
Build-require a git version that supports --no-edit

Closes: #663103

12 years agoAdd manual page for gbp.conf
Guido Günther [Thu, 8 Mar 2012 07:57:20 +0000 (08:57 +0100)]
Add manual page for gbp.conf

Closes: #661748
Thanks: Jari Alto for the POD version

12 years agoimport_dsc: Create debian branch for native packages too
Guido Günther [Thu, 8 Mar 2012 07:42:36 +0000 (08:42 +0100)]
import_dsc: Create debian branch for native packages too

Closes: #663001

12 years agoDocument changes and release 0.6.0~git20120226 debian/0.6.0_git20120226
Guido Günther [Sun, 26 Feb 2012 11:11:48 +0000 (12:11 +0100)]
Document changes and release 0.6.0~git20120226

12 years agoDepend on git >= 1:1.7.9.1-1~
Guido Günther [Sun, 26 Feb 2012 11:04:56 +0000 (12:04 +0100)]
Depend on git >= 1:1.7.9.1-1~

for a working git merge --no-edit

Thanks: Jonathan Nieder

12 years agoGitRepository.merge: add edit option
Guido Günther [Sun, 26 Feb 2012 10:59:05 +0000 (11:59 +0100)]
GitRepository.merge: add edit option

defaulting to False

Closes: #659239

12 years agoGitRepsitory.merge: update apidoc and switch to GitArgs
Guido Günther [Sun, 26 Feb 2012 10:52:14 +0000 (11:52 +0100)]
GitRepsitory.merge: update apidoc and switch to GitArgs

Git-Dch: Ignore

12 years agoconfig.py: Add default value print out to all options
Guido Günther [Sun, 26 Feb 2012 10:32:11 +0000 (11:32 +0100)]
config.py: Add default value print out to all options

12 years agodocs: makeversion pattern match the code
Guido Günther [Sat, 25 Feb 2012 14:57:48 +0000 (15:57 +0100)]
docs: makeversion pattern match the code

Closes: #650465

12 years agocopy_from: remove, not used anymore
Guido Günther [Tue, 31 Jan 2012 07:25:01 +0000 (08:25 +0100)]
copy_from: remove, not used anymore

12 years agogbp-pq: refactor args of write_patch()
Markus Lehtonen [Thu, 12 Jan 2012 13:40:54 +0000 (15:40 +0200)]
gbp-pq: refactor args of write_patch()

Allows defining the formerly hardcoded patch_dir. This makes
write_patch() re-usable in the upcoming RPM-tools.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoMerge tag 'debian/0.6.0_git20120218' into experimental
Guido Günther [Sat, 18 Feb 2012 15:26:19 +0000 (16:26 +0100)]
Merge tag 'debian/0.6.0_git20120218' into experimental

Debian release 0.6.0~git20120218

12 years agoDocument changes and release 0.6.0~git20120211 debian/0.6.0_git20120218
Guido Günther [Sat, 18 Feb 2012 15:17:26 +0000 (16:17 +0100)]
Document changes and release 0.6.0~git20120211

12 years agogbp-pq: Properly print patch name
Guido Günther [Sat, 18 Feb 2012 15:15:51 +0000 (16:15 +0100)]
gbp-pq: Properly print patch name

when guessing authorship information

12 years agodocs: add missing tags to sgml files
Markus Lehtonen [Fri, 10 Feb 2012 15:08:20 +0000 (17:08 +0200)]
docs: add missing tags to sgml files

Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoMake sure we test the built modules
Guido Günther [Mon, 13 Feb 2012 18:56:10 +0000 (19:56 +0100)]
Make sure we test the built modules

not the system ones

12 years agogbp.config: Add tests
Guido Günther [Mon, 13 Feb 2012 18:00:43 +0000 (19:00 +0100)]
gbp.config: Add tests

Git-Dch: Ignore

12 years agoRename GbpOptionParserCommon common to GbpOptionParser
Guido Günther [Mon, 13 Feb 2012 17:56:28 +0000 (18:56 +0100)]
Rename GbpOptionParserCommon common to GbpOptionParser

12 years agoRefactor config.py as preparation for rpm support.
Markus Lehtonen [Thu, 12 Jan 2012 13:40:42 +0000 (15:40 +0200)]
Refactor config.py as preparation for rpm support.

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>
12 years agoRequire git 1.7
Guido Günther [Mon, 13 Feb 2012 16:10:47 +0000 (17:10 +0100)]
Require git 1.7

which is already in Squeeze and Lenny Backports

12 years agoLower dependencies on python-nose and python-coverage
Guido Günther [Mon, 13 Feb 2012 08:39:49 +0000 (09:39 +0100)]
Lower dependencies on python-nose and python-coverage

the versions in Squeeze are recent enough.

12 years agoDepend on git instead of git-core
Guido Günther [Mon, 13 Feb 2012 07:46:02 +0000 (08:46 +0100)]
Depend on git instead of git-core

Closes: #659661

12 years agoMake pristine_tar testcases pass with older git versions
Markus Lehtonen [Tue, 7 Feb 2012 16:25:02 +0000 (18:25 +0200)]
Make pristine_tar testcases pass with older git versions

that don't support user-defined output formats (tar filters) in
git-archive.

12 years agoDocument changes and release 0.6.0~git20120210 debian/0.6.0_git20120210
Guido Günther [Fri, 10 Feb 2012 08:31:09 +0000 (09:31 +0100)]
Document changes and release 0.6.0~git20120210

12 years agogbp-pull: Use a DebianGitRepository
Guido Günther [Fri, 10 Feb 2012 07:41:50 +0000 (08:41 +0100)]
gbp-pull: Use a DebianGitRepository

Closes: #59290

12 years agoInclude missing doctests in generated API docs
Guido Günther [Thu, 9 Feb 2012 15:15:41 +0000 (16:15 +0100)]
Include missing doctests in generated API docs

12 years agoPristineTar: fix links in testcases
Guido Günther [Thu, 9 Feb 2012 15:11:35 +0000 (16:11 +0100)]
PristineTar: fix links in testcases

12 years agoDocument changes and release 0.6.0~git20120209 debian/0.6.0_git20120209
Guido Günther [Thu, 9 Feb 2012 13:09:09 +0000 (14:09 +0100)]
Document changes and release 0.6.0~git20120209

12 years agoDocument changes and release 0.6.0~git20120207
Guido Günther [Tue, 7 Feb 2012 22:25:18 +0000 (23:25 +0100)]
Document changes and release 0.6.0~git20120207

12 years agoimport_orig: Properly detect .tgz and other abbreviated file extensions
Guido Günther [Tue, 7 Feb 2012 22:21:14 +0000 (23:21 +0100)]
import_orig: Properly detect .tgz and other abbreviated file extensions

Closes: #658777

12 years agoimport_orig: clarify function description
Guido Günther [Tue, 7 Feb 2012 22:21:00 +0000 (23:21 +0100)]
import_orig: clarify function description

12 years agoUpstreamSource: tgz is suitable as upstream tarball.
Guido Günther [Tue, 7 Feb 2012 22:12:45 +0000 (23:12 +0100)]
UpstreamSource: tgz is suitable as upstream tarball.

12 years agoUpstreamSource: clarify method descriptions
Guido Günther [Tue, 7 Feb 2012 22:12:10 +0000 (23:12 +0100)]
UpstreamSource: clarify method descriptions

12 years agoUpstreamSource: turn is_* vars and properties into methods
Guido Günther [Tue, 7 Feb 2012 21:55:48 +0000 (22:55 +0100)]
UpstreamSource: turn is_* vars and properties into methods

since this is more consistent with the other is_* methods in other
classes.

12 years agoDocument changes and release 0.6.0~git20120124 debian/0.6.0_git20120124
Guido Günther [Tue, 31 Jan 2012 09:22:31 +0000 (10:22 +0100)]
Document changes and release 0.6.0~git20120124

12 years agoGitRepository: Use _git_inout() in __init__()
Guido Günther [Tue, 31 Jan 2012 08:59:15 +0000 (09:59 +0100)]
GitRepository: Use _git_inout() in __init__()

to avoid misleading error message

12 years agoGitRepository: Allow empty input in _git_inout()
Guido Günther [Tue, 31 Jan 2012 08:58:45 +0000 (09:58 +0100)]
GitRepository: Allow empty input in _git_inout()

so it can replace _git_getoutput()

12 years agoGitRepository: rename to __git_inout to _git_inout
Guido Günther [Tue, 31 Jan 2012 08:24:14 +0000 (09:24 +0100)]
GitRepository: rename to __git_inout to _git_inout

for readability.

12 years agoGitRepository: Rename __git_getoutput to _git_getoutput
Guido Günther [Tue, 31 Jan 2012 08:17:09 +0000 (09:17 +0100)]
GitRepository: Rename __git_getoutput to _git_getoutput

and deprecate it since _git_inout is more flexible, allows to capture
stderr and doesn't return a list of strings.

12 years agoGitRepository: allow to capture stderr in __git_inout
Guido Günther [Tue, 31 Jan 2012 07:48:06 +0000 (08:48 +0100)]
GitRepository: allow to capture stderr in __git_inout

stderr was always None.

12 years agoDepend on pristine-tar for the tests
Guido Günther [Mon, 30 Jan 2012 12:03:03 +0000 (13:03 +0100)]
Depend on pristine-tar for the tests

12 years agoPristineTar: add testcase
Guido Günther [Sun, 22 Jan 2012 18:45:58 +0000 (19:45 +0100)]
PristineTar: add testcase

12 years agoPristineTar: fix match when not passing in a compression type
Guido Günther [Mon, 30 Jan 2012 11:48:45 +0000 (12:48 +0100)]
PristineTar: fix match when not passing in a compression type

12 years agoPristineTar: add missing import for debug output
Guido Günther [Mon, 30 Jan 2012 11:48:13 +0000 (12:48 +0100)]
PristineTar: add missing import for debug output

12 years agoGitRepository: document archive()
Guido Günther [Sat, 28 Jan 2012 20:08:47 +0000 (21:08 +0100)]
GitRepository: document archive()

12 years agoPristineTar: make sure we set the current working directory
Guido Günther [Sat, 28 Jan 2012 20:08:34 +0000 (21:08 +0100)]
PristineTar: make sure we set the current working directory

otherwise this will fail when invoked from outside the git tree

12 years agoRemove comparison with True to make pychecker happy
Guido Günther [Mon, 23 Jan 2012 22:27:06 +0000 (23:27 +0100)]
Remove comparison with True to make pychecker happy

12 years agoGitRepository: allow git.commit_dir to create new branches
Markus Lehtonen [Thu, 12 Jan 2012 13:21:51 +0000 (15:21 +0200)]
GitRepository: allow git.commit_dir to create new branches

commit_dir creates new orphan branch if the given branch is not found
and create_missing_branch is allowed.

12 years agogbp-pq: don't crash in get_maintainer_from_control()
Markus Lehtonen [Thu, 12 Jan 2012 13:27:13 +0000 (15:27 +0200)]
gbp-pq: don't crash in get_maintainer_from_control()

even if debian/control is missing.

12 years agoDocument changes and release 0.6.0~git20120123
Guido Günther [Mon, 23 Jan 2012 21:16:35 +0000 (22:16 +0100)]
Document changes and release 0.6.0~git20120123

12 years agobuildpackage: Add pristine-tar-commit option
Guido Günther [Sun, 22 Jan 2012 12:00:38 +0000 (13:00 +0100)]
buildpackage: Add pristine-tar-commit option

This option allows to auto commit a generated tarball to the
pristine-tar branch to simplify building non-dfsg clean packages and to
make it easier to track uptream git.