tools/git-buildpackage.git
12 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.

12 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

12 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

12 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

12 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.

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

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

12 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

12 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.

12 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.

12 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

12 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

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

12 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

12 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

12 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.

12 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.

12 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/

12 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

12 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

12 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

12 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()

12 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

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

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

12 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

12 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

12 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

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

12 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.

12 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

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

12 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

12 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

12 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

12 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'

12 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

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

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

12 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

12 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

12 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

12 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.

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

12 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

12 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

12 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

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

12 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

12 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()

12 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

12 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

12 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

12 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

12 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()

12 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

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

12 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()

12 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

12 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

12 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

12 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()

12 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()

12 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()

12 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

12 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()

12 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.

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agoAdd _git_command that executes a command at the repo's path
Guido Günther [Fri, 21 Oct 2011 19:04:29 +0000 (21:04 +0200)]
Add _git_command that executes a command at the repo's path

making explicit path checking superfluous.

Git-Dch: Ignore

12 years agoAdd cwd option to gbp.command_wrappers.Command
Guido Günther [Fri, 21 Oct 2011 16:45:58 +0000 (18:45 +0200)]
Add cwd option to gbp.command_wrappers.Command

12 years agoDocument changes and release 0.5.32 debian/0.5.32
Guido Günther [Mon, 17 Oct 2011 08:15:57 +0000 (10:15 +0200)]
Document changes and release 0.5.32

12 years agoMake sure self.config['filter'] is a list
Guido Günther [Sun, 16 Oct 2011 17:08:00 +0000 (19:08 +0200)]
Make sure self.config['filter'] is a list

The python2.7 OptionParser chokes otherwise.

12 years agoMove guess_upstream_version into UpstreamSource
Guido Günther [Sun, 16 Oct 2011 14:07:19 +0000 (16:07 +0200)]
Move guess_upstream_version into UpstreamSource

12 years agoUse known_compressions in guess_upstream_version too
Guido Günther [Sun, 16 Oct 2011 12:20:34 +0000 (14:20 +0200)]
Use known_compressions in guess_upstream_version too

Closes: #645477

12 years agoDocument changes and release 0.5.31 debian/0.5.31
Guido Günther [Wed, 28 Sep 2011 18:21:58 +0000 (20:21 +0200)]
Document changes and release 0.5.31

12 years agogbp-pq: don't fail on missing series file
Guido Günther [Tue, 27 Sep 2011 21:40:22 +0000 (23:40 +0200)]
gbp-pq: don't fail on missing series file

but create an empty branch instead

12 years agoAdd missing brace
Guido Günther [Mon, 26 Sep 2011 22:14:03 +0000 (00:14 +0200)]
Add missing brace

12 years agoAdd missing brace
Guido Günther [Mon, 26 Sep 2011 22:14:03 +0000 (00:14 +0200)]
Add missing brace

12 years agoFix URL to cl2vcs service
Salvatore Bonaccorso [Fri, 2 Sep 2011 19:46:44 +0000 (21:46 +0200)]
Fix URL to cl2vcs service

Refer to https://honk.sigxcpu.org/cl2vcs instead of
https://honk.sigxcpu.org/cl2vcs for the cl2vcs service.

Closes: #640141

12 years agoAdd docstring
Guido Günther [Fri, 26 Aug 2011 08:46:32 +0000 (10:46 +0200)]
Add docstring

Git-Dch: Ignore

12 years agoFix pristine-tar error message
Guido Günther [Tue, 23 Aug 2011 07:45:50 +0000 (09:45 +0200)]
Fix pristine-tar error message

13 years agoDocument changes and release 0.5.30 debian/0.5.30
Guido Günther [Wed, 10 Aug 2011 20:25:59 +0000 (22:25 +0200)]
Document changes and release 0.5.30

13 years agogbp-pq: Use latest patches with --time-machine
Guido Günther [Wed, 10 Aug 2011 20:23:34 +0000 (22:23 +0200)]
gbp-pq: Use latest patches with --time-machine

When going back in history to find the point where the patches in
debian/patches still apply make sure we use the latest ones not the one
currently in the tree.

13 years agoFix missing branch name in error message
Guido Günther [Tue, 9 Aug 2011 17:21:45 +0000 (19:21 +0200)]
Fix missing branch name in error message

13 years agoIgnore comments and empty lines in series files
Guido Günther [Tue, 9 Aug 2011 17:17:37 +0000 (19:17 +0200)]
Ignore comments and empty lines in series files

Closes; #637224

13 years agoLeave compression type detection to tar by default
Guido Günther [Sat, 30 Jul 2011 18:32:51 +0000 (20:32 +0200)]
Leave compression type detection to tar by default

13 years agoAdd known_compressions() to UpstreamSource
Guido Günther [Sat, 30 Jul 2011 16:16:39 +0000 (18:16 +0200)]
Add known_compressions() to UpstreamSource

so we can use it for the DscFile parsing. This fixes the import of xz
compressed upstream tarballs.

13 years agoDocument meta tags
Guido Günther [Wed, 3 Aug 2011 20:01:10 +0000 (22:01 +0200)]
Document meta tags

so one doesn't have to consult the manual

Git-Dch: Short
Closes: #636088
Thanks: Raphaël Hertzog for the suggestion

13 years agodoc: epydoc updates
Guido Günther [Sat, 30 Jul 2011 13:46:02 +0000 (15:46 +0200)]
doc: epydoc updates

Git-Dch: Ignore

13 years agoDocument changes and release 0.5.29 debian/0.5.29
Guido Günther [Sat, 30 Jul 2011 13:08:09 +0000 (15:08 +0200)]
Document changes and release 0.5.29