tools/git-buildpackage.git
12 years agoRemove unused module
Guido Günther [Tue, 29 Nov 2011 12:38:04 +0000 (13:38 +0100)]
Remove unused module

Git-Dch: Ignore

12 years agobuildpackage.py: move changelog fetching into function
Guido Günther [Sun, 27 Nov 2011 22:44:51 +0000 (23:44 +0100)]
buildpackage.py: move changelog fetching into function

12 years agoAdd ChangeLog class
Guido Günther [Fri, 25 Nov 2011 14:51:52 +0000 (15:51 +0100)]
Add ChangeLog class

making it easier to query versions. Add tests.

12 years agoAdditional documentation for postexport hook in the manual
Jan Čapek [Wed, 23 Nov 2011 13:44:40 +0000 (14:44 +0100)]
Additional documentation for postexport hook in the manual

- the documentation now provides sample postexport script and gbp.conf

Signed-off-by: Jan Čapek <jan.capek@braiins.cz>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
12 years agoFix typos
Guido Günther [Wed, 23 Nov 2011 07:37:46 +0000 (08:37 +0100)]
Fix typos

13 years agobuildpackage: group functions needed for export-dir handling
Guido Günther [Tue, 22 Nov 2011 21:56:26 +0000 (22:56 +0100)]
buildpackage: group functions needed for export-dir handling

13 years agobuildpackage: move export of source tree into separate function
Guido Günther [Tue, 22 Nov 2011 21:51:21 +0000 (22:51 +0100)]
buildpackage: move export of source tree into separate function

13 years agoDocumentation update for --git-postexport, --git-postbuild typo fix
Jan Čapek [Fri, 9 Sep 2011 15:24:19 +0000 (17:24 +0200)]
Documentation update for --git-postexport, --git-postbuild typo fix

Signed-off-by: Jan Čapek <jan.capek@braiins.cz>
Signed-off-by: Guido Günther <agx@sigxcpu.org>
13 years agoSupport postexport hooks
Guido Günther [Tue, 22 Nov 2011 19:58:01 +0000 (20:58 +0100)]
Support postexport hooks

Heavily based on a patch by Jan Čapek

Closes: #640982

13 years agoMove debian related helpers into submodule
Guido Günther [Tue, 22 Nov 2011 15:49:30 +0000 (16:49 +0100)]
Move debian related helpers into submodule

13 years agobuildpackage: move tarball preparation into separate function
Guido Günther [Tue, 22 Nov 2011 15:45:40 +0000 (16:45 +0100)]
buildpackage: move tarball preparation into separate function

13 years agoUse GitArgs in GitRepository.{create,delete}_branch()
Guido Günther [Mon, 21 Nov 2011 22:11:27 +0000 (23:11 +0100)]
Use GitArgs in GitRepository.{create,delete}_branch()

13 years agoUse GitArgs in GitRepository.clone()
Guido Günther [Mon, 21 Nov 2011 22:08:07 +0000 (23:08 +0100)]
Use GitArgs in GitRepository.clone()

13 years agogbp-pq: Instead of looking for the signature don't let git generate it
Guido Günther [Mon, 21 Nov 2011 21:42:58 +0000 (22:42 +0100)]
gbp-pq: Instead of looking for the signature don't let git generate it

Thanks: Robert Luberda

13 years agoGitRepository: add signature option to format_patch
Guido Günther [Mon, 21 Nov 2011 21:42:31 +0000 (22:42 +0100)]
GitRepository: add signature option to format_patch

13 years agoAdd class to simplify git argument handling
Guido Günther [Mon, 21 Nov 2011 21:42:08 +0000 (22:42 +0100)]
Add class to simplify git argument handling

13 years agoFastImport: add test and cleanup api a bit
Guido Günther [Sun, 20 Nov 2011 13:10:41 +0000 (14:10 +0100)]
FastImport: add test and cleanup api a bit

13 years agoGitRepository: Return GitModifier from get_author_info
Guido Günther [Sun, 20 Nov 2011 16:53:46 +0000 (17:53 +0100)]
GitRepository: Return GitModifier from get_author_info

13 years agoMove FastImport to separate file
Guido Günther [Sun, 20 Nov 2011 12:58:14 +0000 (13:58 +0100)]
Move FastImport to separate file

13 years agoMove GitCommit class into separate file
Guido Günther [Tue, 15 Nov 2011 18:59:13 +0000 (19:59 +0100)]
Move GitCommit class into separate file

13 years agoMove GitModifier class to separate file
Guido Günther [Tue, 15 Nov 2011 18:30:03 +0000 (19:30 +0100)]
Move GitModifier class to separate file

and introduce a new base exception for Git related errors.

13 years agoMove git code into submodule
Guido Günther [Mon, 14 Nov 2011 18:54:12 +0000 (19:54 +0100)]
Move git code into submodule

13 years agoGitRepository: add auto_name option to clone()
Guido Günther [Mon, 31 Oct 2011 10:14:55 +0000 (11:14 +0100)]
GitRepository: add auto_name option to clone()

so we can specify the exact name of a clone.

13 years agoGitRepository: add checkout() to checkout a treeish
Guido Günther [Mon, 7 Nov 2011 16:54:36 +0000 (17:54 +0100)]
GitRepository: add checkout() to checkout a treeish

13 years agoGitRepository: fetch and pull quietly
Guido Günther [Mon, 7 Nov 2011 16:37:54 +0000 (17:37 +0100)]
GitRepository: fetch and pull quietly

13 years agoGitRepository: handle case when not on any branch
Guido Günther [Mon, 7 Nov 2011 16:37:01 +0000 (17:37 +0100)]
GitRepository: handle case when not on any branch

13 years agoMove gbp/version.py generation into setup.py
Guido Günther [Mon, 7 Nov 2011 15:05:20 +0000 (16:05 +0100)]
Move gbp/version.py generation into setup.py

This allows us to build on non Debian systems with setup.py only.

13 years agoUpdate .gitignore
Guido Günther [Sun, 6 Nov 2011 18:40:57 +0000 (19:40 +0100)]
Update .gitignore

13 years agoSwitch to dh
Guido Günther [Sun, 6 Nov 2011 17:50:08 +0000 (18:50 +0100)]
Switch to dh

13 years agoMove doc generation to separate Makefile
Guido Günther [Sun, 6 Nov 2011 17:29:19 +0000 (18:29 +0100)]
Move doc generation to separate Makefile

13 years agoGitRepository.tag(): Always add the '-s' flag
Guido Günther [Wed, 2 Nov 2011 11:43:55 +0000 (12:43 +0100)]
GitRepository.tag(): Always add the '-s' flag

when signing tags.

13 years agogbp-pull: massive speedup by just updating the ref
Guido Günther [Sun, 6 Nov 2011 15:47:01 +0000 (16:47 +0100)]
gbp-pull: massive speedup by just updating the ref

to the remote's SHA1 instead of checking out the branch and doing a
fast-forward merge.

13 years agoGitRepository: fix fetch invocation without repo
Guido Günther [Mon, 31 Oct 2011 10:30:56 +0000 (11:30 +0100)]
GitRepository: fix fetch invocation without repo

13 years agodebian/rules: invoke pychecker on submodules too
Guido Günther [Sun, 6 Nov 2011 15:12:15 +0000 (16:12 +0100)]
debian/rules: invoke pychecker on submodules too

13 years agoFastImport: robustify exception handling
Guido Günther [Sun, 6 Nov 2011 15:11:25 +0000 (16:11 +0100)]
FastImport: robustify exception handling

13 years agoConfigure epydoc via setup.cfg
Guido Günther [Wed, 2 Nov 2011 11:56:58 +0000 (12:56 +0100)]
Configure epydoc via setup.cfg

13 years agoUse setuptools to run the tests
Guido Günther [Wed, 2 Nov 2011 09:35:58 +0000 (10:35 +0100)]
Use setuptools to run the tests

13 years agogbp-pq: don't claim we're uptodate
Guido Günther [Fri, 4 Nov 2011 12:18:37 +0000 (13:18 +0100)]
gbp-pq: don't claim we're uptodate

if 'rebase' is invoked from the pq branch.

13 years agoUse import_dsc as a module
Guido Günther [Tue, 1 Nov 2011 17:24:25 +0000 (18:24 +0100)]
Use import_dsc as a module

No need to spawn an external command here.

13 years agoGet rid of the symlink
Guido Günther [Sun, 30 Oct 2011 19:03:33 +0000 (20:03 +0100)]
Get rid of the symlink

by moving the commands to gbp/scripts/

13 years agoAllow to import Debian packages into bare repositories
Guido Günther [Sun, 30 Oct 2011 15:16:09 +0000 (16:16 +0100)]
Allow to import Debian packages into bare repositories

13 years agoAllow to import upstream tarballs into bare repositories
Guido Günther [Sun, 30 Oct 2011 12:51:22 +0000 (13:51 +0100)]
Allow to import upstream tarballs into bare repositories

Closes: #582775

13 years agoGitRepository: Use update-ref to force a branch's head in bare repos
Guido Günther [Sun, 30 Oct 2011 13:25:43 +0000 (14:25 +0100)]
GitRepository: Use update-ref to force a branch's head in bare repos

13 years agoGitRepository: handle bare repos and errors in is_clean()
Guido Günther [Sat, 29 Oct 2011 14:08:47 +0000 (16:08 +0200)]
GitRepository: handle bare repos and errors in is_clean()

13 years agoGitRepository: Simplify error status handling
Guido Günther [Sat, 29 Oct 2011 14:06:20 +0000 (16:06 +0200)]
GitRepository: Simplify error status handling

Git-Dch: Ignore

13 years agoFail on epydoc warnings
Guido Günther [Sat, 29 Oct 2011 10:07:11 +0000 (12:07 +0200)]
Fail on epydoc warnings

13 years agoFix epydoc warnings
Guido Günther [Sat, 29 Oct 2011 10:06:52 +0000 (12:06 +0200)]
Fix epydoc warnings

13 years agoGitRepository: add head property to return the current HEAD
Guido Günther [Fri, 28 Oct 2011 11:54:51 +0000 (13:54 +0200)]
GitRepository: add head property to return the current HEAD

13 years agoGitRepository: simplify is_empty
Guido Günther [Fri, 28 Oct 2011 11:29:57 +0000 (13:29 +0200)]
GitRepository: simplify is_empty

Git-Dch: Ignore

13 years agoGitModifier: Don't use self.__dict__.update(locals())
Guido Günther [Fri, 28 Oct 2011 08:14:34 +0000 (10:14 +0200)]
GitModifier: Don't use self.__dict__.update(locals())

to make pychecker happy

13 years agoDocstring fixups
Guido Günther [Fri, 28 Oct 2011 11:27:11 +0000 (13:27 +0200)]
Docstring fixups

13 years agoGitRepository: rename base_dir to git_dir
Guido Günther [Fri, 28 Oct 2011 16:40:25 +0000 (18:40 +0200)]
GitRepository: rename base_dir to git_dir

since that's where it points to.

13 years agoGitRepository: Don't try to access .git/ in bare repos
Guido Günther [Thu, 27 Oct 2011 18:57:16 +0000 (20:57 +0200)]
GitRepository: Don't try to access .git/ in bare repos

13 years agoGitRepository: Reorder into groups
Guido Günther [Thu, 27 Oct 2011 18:00:37 +0000 (20:00 +0200)]
GitRepository: Reorder into groups

13 years agoAdd tests for non bare clones
Guido Günther [Thu, 27 Oct 2011 17:19:09 +0000 (19:19 +0200)]
Add tests for non bare clones

13 years agoGitRepository: use 'git show-ref' to check a branch's existence
Guido Günther [Wed, 26 Oct 2011 19:56:49 +0000 (21:56 +0200)]
GitRepository: use 'git show-ref' to check a branch's existence

13 years agoGitRepository: use branch instead of get_branch
Guido Günther [Wed, 26 Oct 2011 18:06:48 +0000 (20:06 +0200)]
GitRepository: use branch instead of get_branch

for readability

13 years agoGitRepository: speed up get_branch() and make it more robust
Guido Günther [Wed, 26 Oct 2011 17:47:23 +0000 (19:47 +0200)]
GitRepository: speed up get_branch() and make it more robust

by using 'git symbolic-ref'

13 years agoGitRepository: mark _get_branches private
Guido Günther [Wed, 26 Oct 2011 17:44:48 +0000 (19:44 +0200)]
GitRepository: mark _get_branches private

13 years agoGitRrepository: add get_tags()
Guido Günther [Wed, 26 Oct 2011 08:46:42 +0000 (10:46 +0200)]
GitRrepository: add get_tags()

13 years agotests: Test GitRepository.merge()
Guido Günther [Wed, 26 Oct 2011 16:27:24 +0000 (18:27 +0200)]
tests: Test GitRepository.merge()

13 years agoGitRepository: group related methods
Guido Günther [Wed, 26 Oct 2011 13:01:17 +0000 (15:01 +0200)]
GitRepository: group related methods

and document more methods

13 years agoGather coverage information during tests
Guido Günther [Tue, 25 Oct 2011 19:31:25 +0000 (21:31 +0200)]
Gather coverage information during tests

13 years agoTurn tests into doctests
Guido Günther [Mon, 24 Oct 2011 17:35:13 +0000 (19:35 +0200)]
Turn tests into doctests

so we can auto generate some examples

13 years agoGitRepository: Add commit_files()
Guido Günther [Tue, 25 Oct 2011 18:55:06 +0000 (20:55 +0200)]
GitRepository: Add commit_files()

to directly commit a list of files.

13 years agoGitRepository: extend list_files()
Guido Günther [Tue, 25 Oct 2011 16:27:28 +0000 (18:27 +0200)]
GitRepository: extend list_files()

13 years agoGitRepository: Add minimal support for bare repositories
Guido Günther [Tue, 25 Oct 2011 10:29:14 +0000 (12:29 +0200)]
GitRepository: Add minimal support for bare repositories

13 years agoGitRepository: Allow to list local branches
Guido Günther [Tue, 25 Oct 2011 11:01:49 +0000 (13:01 +0200)]
GitRepository: Allow to list local branches

13 years agoGitRepository: Allow to delete remote branches
Guido Günther [Tue, 25 Oct 2011 10:42:15 +0000 (12:42 +0200)]
GitRepository: Allow to delete remote branches

13 years agoGitRepository: Add collect_garbage
Guido Günther [Tue, 25 Oct 2011 09:40:31 +0000 (11:40 +0200)]
GitRepository: Add collect_garbage

13 years agocommand_wrappers.Command: Don't print several error lines
Guido Günther [Tue, 25 Oct 2011 08:06:36 +0000 (10:06 +0200)]
command_wrappers.Command: Don't print several error lines

13 years agoGitRepository: Rename remove_tag() to delete_tag()
Guido Günther [Tue, 25 Oct 2011 10:23:28 +0000 (12:23 +0200)]
GitRepository: Rename remove_tag() to delete_tag()

to be consistent with delete_branch()

13 years agoFix GitRepository.is_clean() docs
Guido Günther [Mon, 24 Oct 2011 19:26:25 +0000 (21:26 +0200)]
Fix GitRepository.is_clean() docs

13 years agoDon't be verbose
Guido Günther [Mon, 24 Oct 2011 18:33:35 +0000 (20:33 +0200)]
Don't be verbose

Git-Dch: Ignore

13 years agoGitRepository: make branch, path and base_dir read only properties
Guido Günther [Mon, 24 Oct 2011 17:24:44 +0000 (19:24 +0200)]
GitRepository: make branch, path and base_dir read only properties

13 years agoGitRepository.fetch(): fix remote arg
Guido Günther [Mon, 24 Oct 2011 15:37:36 +0000 (17:37 +0200)]
GitRepository.fetch(): fix remote arg

13 years agoAdd GitRepository.add_remote_repo()
Guido Günther [Mon, 24 Oct 2011 15:20:19 +0000 (17:20 +0200)]
Add GitRepository.add_remote_repo()

13 years agoGitRepository.clone(): add depth and recursive parameter
Guido Günther [Mon, 24 Oct 2011 14:10:47 +0000 (16:10 +0200)]
GitRepository.clone(): add depth and recursive parameter

13 years agoGitRepository: add pull()
Guido Günther [Mon, 24 Oct 2011 12:51:04 +0000 (14:51 +0200)]
GitRepository: add pull()

13 years agoReplace GitTag by GitRepository.create_tag()
Guido Günther [Mon, 24 Oct 2011 12:12:59 +0000 (14:12 +0200)]
Replace GitTag by GitRepository.create_tag()

13 years agogbp-pq: Strip .patch and .diff
Guido Günther [Mon, 24 Oct 2011 07:48:00 +0000 (09:48 +0200)]
gbp-pq: Strip .patch and .diff

when importing patches without a subject

13 years agogbp-pq: Properly check for start of signature
Guido Günther [Mon, 24 Oct 2011 07:47:23 +0000 (09:47 +0200)]
gbp-pq: Properly check for start of signature

Closes: #646400

13 years agoDocument that gbp-create-repo is noninteractive
Guido Günther [Sun, 23 Oct 2011 11:52:02 +0000 (13:52 +0200)]
Document that gbp-create-repo is noninteractive

Closes: #643752

13 years agoReplace GitFetch by GitRepository.fetch()
Guido Günther [Sun, 23 Oct 2011 11:47:01 +0000 (13:47 +0200)]
Replace GitFetch by GitRepository.fetch()

13 years agoReplace GitMerge by GitRepository.merge()
Guido Günther [Sun, 23 Oct 2011 11:40:07 +0000 (13:40 +0200)]
Replace GitMerge by GitRepository.merge()

13 years agoReplace GitClone by GitRepository.clone()
Guido Günther [Sat, 22 Oct 2011 14:55:47 +0000 (16:55 +0200)]
Replace GitClone by GitRepository.clone()

13 years agoGitRepository.__init__: use more robust "git rev-parse --show-cdup"
Guido Günther [Sat, 22 Oct 2011 14:30:17 +0000 (16:30 +0200)]
GitRepository.__init__: use more robust "git rev-parse --show-cdup"

instead of just looking for a ".git" directory

13 years agoReplace GitBranch by GitRepository.create_branch()
Guido Günther [Sat, 22 Oct 2011 12:25:13 +0000 (14:25 +0200)]
Replace GitBranch by GitRepository.create_branch()

13 years agoGitRepository: add commit and commit_all
Guido Günther [Sat, 22 Oct 2011 11:54:16 +0000 (13:54 +0200)]
GitRepository: add commit and commit_all

to commit the current state of the index and all changes.

13 years agogit: Add GitModifier
Guido Günther [Sat, 22 Oct 2011 11:53:48 +0000 (13:53 +0200)]
git: Add GitModifier

to make passing author/comitter information easier.

Git-Dch: Ignore

13 years agoGitRepository: rename commits to get_commits
Guido Günther [Sat, 22 Oct 2011 11:40:50 +0000 (13:40 +0200)]
GitRepository: rename commits to get_commits

Git-Dch: Ignore

13 years agogit: Docstring updates
Guido Günther [Sat, 22 Oct 2011 11:36:37 +0000 (13:36 +0200)]
git: Docstring updates

13 years agoGitRepository.__init__: improve error message
Guido Günther [Sat, 22 Oct 2011 11:14:49 +0000 (13:14 +0200)]
GitRepository.__init__: improve error message

Git-Dch: Ignore

13 years agoGitRepository: remove now superfluous check_path
Guido Günther [Fri, 21 Oct 2011 19:42:33 +0000 (21:42 +0200)]
GitRepository: remove now superfluous check_path

13 years agoUse GitRepository._git_command instead of GitCommand
Guido Günther [Fri, 21 Oct 2011 19:40:02 +0000 (21:40 +0200)]
Use GitRepository._git_command instead of GitCommand

so we execute commands in the repository by default

13 years agoExecute GitRepository._get_output default at self.path by default
Guido Günther [Fri, 21 Oct 2011 19:33:45 +0000 (21:33 +0200)]
Execute GitRepository._get_output default at self.path by default

Git-Dch: Ignore

13 years agoAdd GitRepository.remove_files
Guido Günther [Fri, 21 Oct 2011 19:26:04 +0000 (21:26 +0200)]
Add GitRepository.remove_files

to mark files for removal

Git-Dch: Ignore

13 years agoReplace GitAdd by GitRepository.add_files
Guido Günther [Fri, 21 Oct 2011 19:20:24 +0000 (21:20 +0200)]
Replace GitAdd by GitRepository.add_files

Git-Dch: Ignore

13 years agoExecute GitRepository.__git_inout and self.path
Guido Günther [Fri, 21 Oct 2011 19:12:28 +0000 (21:12 +0200)]
Execute GitRepository.__git_inout and self.path

Git-Dch: Ignore

13 years agoMake create_repo a @classmethod
Guido Günther [Fri, 21 Oct 2011 19:05:05 +0000 (21:05 +0200)]
Make create_repo a @classmethod

and GitInit superfluous

Git-Dch: Ignore