tools/git-buildpackage.git
10 years agoMake parsing config file sections symmetric
Guido Günther [Sun, 5 Jan 2014 14:41:44 +0000 (15:41 +0100)]
Make parsing config file sections symmetric

Always read the legacy command's config file section prior to the
subcommand's config file section.

Until now 'gbp <subcommand>' would read '[subcommand]' as well as
'[gbp-<subcommand>]' sections while 'gbp-<subcommand>' would only read
'[gbp-<subcommand>]' sections.

Closes: #733759

10 years agoAvoid backtrace on config file parse errors
Guido Günther [Sun, 5 Jan 2014 14:15:57 +0000 (15:15 +0100)]
Avoid backtrace on config file parse errors

"gbp buildpackage" did this already but others didn't

Closes: #733759

10 years agoDepend on newer devscripts
Guido Günther [Tue, 24 Dec 2013 13:19:33 +0000 (14:19 +0100)]
Depend on newer devscripts

These contain a uscan that handles repackaging at the right level and
won't let us pick up the wrong tarball name.

Closes: #635920
Thanks: gregor herrmann and all others involved

10 years agoDocument changes and release 0.6.8 debian/0.6.8
Guido Günther [Fri, 20 Dec 2013 16:21:34 +0000 (17:21 +0100)]
Document changes and release 0.6.8

10 years agoDetermine changes file name based on dpkg-buildpackage options
Guido Günther [Fri, 20 Dec 2013 16:01:17 +0000 (17:01 +0100)]
Determine changes file name based on dpkg-buildpackage options

Closes: #732678

10 years agoRun nosetest on executables too
Guido Günther [Fri, 20 Dec 2013 16:04:38 +0000 (17:04 +0100)]
Run nosetest on executables too

They're all well behaved and this allows us to use doctests in them

10 years agoAdjust test cases to newer devscripts
Guido Günther [Tue, 17 Dec 2013 21:28:13 +0000 (22:28 +0100)]
Adjust test cases to newer devscripts

Closes: #732384

10 years agoNo need to document --verbose
Guido Günther [Mon, 2 Dec 2013 19:08:27 +0000 (20:08 +0100)]
No need to document --verbose

Properly document --help instead.

Thanks: Olivier Berger for pointing this out
Closes: #731149

10 years agoDocument changes and release 0.6.7 debian/0.6.7
Guido Günther [Fri, 29 Nov 2013 19:52:26 +0000 (20:52 +0100)]
Document changes and release 0.6.7

10 years agoUse --distribution instead of --dist
Guido Günther [Fri, 29 Nov 2013 19:49:16 +0000 (20:49 +0100)]
Use --distribution instead of --dist

Closes: #730788

10 years agoFiz description of backports branches
Guido Günther [Thu, 14 Nov 2013 14:55:11 +0000 (15:55 +0100)]
Fiz description of backports branches

10 years agolog: add error and warning aliases
Guido Günther [Wed, 6 Nov 2013 20:08:14 +0000 (21:08 +0100)]
log: add error and warning aliases

since I tend to use them instead of err and warn.

Closes: #728896

10 years agoimport-dsc; Merge upstream version by tag
Guido Günther [Wed, 6 Nov 2013 16:39:24 +0000 (17:39 +0100)]
import-dsc; Merge upstream version by tag

instead of simply using the upstream branch name. THis makes sure
we also merge upstream versions that were imported previously with
e.g. "gbp import-orig".

Closes: #698222

10 years agoDocument changes and release 0.6.6 debian/0.6.6
Guido Günther [Wed, 6 Nov 2013 07:23:50 +0000 (08:23 +0100)]
Document changes and release 0.6.6

10 years agoDisable html coverage generation
Guido Günther [Wed, 6 Nov 2013 07:32:49 +0000 (08:32 +0100)]
Disable html coverage generation

until python-nose is fixed.

10 years agoUpdate to git-pbuilder 1.30
Guido Günther [Wed, 6 Nov 2013 07:20:50 +0000 (08:20 +0100)]
Update to git-pbuilder 1.30

that resyncs with what we shipped in gbp.

10 years agoimport-dsc: allow to skip Debian tag creation
Guido Günther [Tue, 5 Nov 2013 08:31:12 +0000 (09:31 +0100)]
import-dsc: allow to skip Debian tag creation

Closes: #636368

10 years agoAdd zsh completion
Felipe Sateler [Wed, 30 Oct 2013 20:25:22 +0000 (17:25 -0300)]
Add zsh completion

Closes; #717002

10 years agodocs: update pq manpages regarding pq command meta tags
Markus Lehtonen [Wed, 11 Sep 2013 09:08:06 +0000 (12:08 +0300)]
docs: update pq manpages regarding pq command meta tags

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: support 'Topic' patch-export command
Markus Lehtonen [Wed, 4 Sep 2013 13:01:17 +0000 (16:01 +0300)]
pq: support 'Topic' patch-export command

Topic can be defined with either 'Gbp: Topic <topic>' or 'Gbp-Pq: Topic
<topic>' in the commit message.

This is to replace the "gbp-pq-topic: <topic>" command.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: listen to 'Gbp-Pq:' commands, too
Markus Lehtonen [Wed, 4 Sep 2013 12:53:37 +0000 (15:53 +0300)]
pq: listen to 'Gbp-Pq:' commands, too

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: add format_diff() function
Markus Lehtonen [Wed, 8 May 2013 17:07:52 +0000 (20:07 +0300)]
pq: add format_diff() function

For generating a patch file from a diff between two arbitrary commits.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: support patch-export commands
Markus Lehtonen [Fri, 3 May 2013 08:04:28 +0000 (11:04 +0300)]
pq: support patch-export commands

Support giving commands to pq as a meta tag in commit message. The
format is "Gbp: <command> [args]".

Currently, only one command is supported. namely 'ignore'. That is, one
can use 'Gbp: Ignore' in the commit message for ignoring the commit in
patch-generation.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: properly generate non-ascii patch files
Markus Lehtonen [Wed, 8 May 2013 07:01:54 +0000 (10:01 +0300)]
pq: properly generate non-ascii patch files

Encode non-ascii email headers properly. Also, set MIME headers
correctly for the message body if the commit message body contains
non-ascii characters.

The reason for constructing the message in a little bit "clumsy" way is
the intention is to match the output of git-format-patch as closely as
possible.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq.format_patch: support file path filtering
Markus Lehtonen [Fri, 14 Sep 2012 14:21:09 +0000 (17:21 +0300)]
pq.format_patch: support file path filtering

Implements a filter option that allows filtering out changes to certain
files/paths in the patch-generation. A commit is totally ignored if all
files would be filtered out. The path filter is given as a Python
regexp.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agopq: rewrite patch export functionality
Markus Lehtonen [Thu, 2 May 2013 09:57:10 +0000 (12:57 +0300)]
pq: rewrite patch export functionality

Use our own function for constructing the patch files instead of using
the format-patch command of git. This way, we get the desired output
format directly, without the need for the error-prone "format-patch,
parse patch files, mangle and re-write patch files" cycle.

Also, fix patch naming in patch generation when '--no-patch-numbers' is
used.  Previously, multiple commits with the same subject resulted in
multiple patches having the same filename. This lead into broken series
with missing patches as patch files were overwritten by the topmost
commit.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd missing bash completion for gbp import-dscs
Guido Günther [Sat, 26 Oct 2013 09:34:27 +0000 (11:34 +0200)]
Add missing bash completion for gbp import-dscs

Closes: #727749

10 years agogbp-clone: support cloning to a specific directory
Guan Junchun [Fri, 11 Oct 2013 10:16:17 +0000 (18:16 +0800)]
gbp-clone: support cloning to a specific directory

Closes: #725666

Signed-off-by: Guan Junchun <junchunx.guan@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agogbp-clone: support repo URLs like "host:repo.git"
Guan Junchun [Sat, 12 Oct 2013 08:54:44 +0000 (16:54 +0800)]
gbp-clone: support repo URLs like "host:repo.git"

Previously, gbp didn't correctly parse this kind of URL and clone
failed.

Signed-off-by: Guan Junchun <junchunx.guan@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoDocument changes and release 0.6.5 debian/0.6.5
Guido Günther [Wed, 16 Oct 2013 08:30:15 +0000 (10:30 +0200)]
Document changes and release 0.6.5

10 years agoBump standards version
Guido Günther [Wed, 16 Oct 2013 08:29:07 +0000 (10:29 +0200)]
Bump standards version

10 years agoDon't export DEB_VENDOR="Debian"
Andrew Starr-Bochicchio [Thu, 19 Sep 2013 15:31:13 +0000 (11:31 -0400)]
Don't export DEB_VENDOR="Debian"

Tests now take Ubuntu versions into consideration.

Closes: #723756

10 years agoBe more robust about git status output changes
Guido Günther [Wed, 16 Oct 2013 08:20:18 +0000 (10:20 +0200)]
Be more robust about git status output changes

by using --porcelain. Heavily based on a patch by rian m. carlson

Closes: #726260

10 years agodoc: Fix git-pbuilder example
Etienne Millon [Wed, 9 Oct 2013 14:24:47 +0000 (16:24 +0200)]
doc: Fix git-pbuilder example

Closes: #725875

10 years agoDocument changes and release 0.6.4 debian/0.6.4
Guido Günther [Sun, 6 Oct 2013 15:38:02 +0000 (17:38 +0200)]
Document changes and release 0.6.4

10 years agoBackports got integrated into the main archive
Guido Günther [Tue, 17 Sep 2013 16:33:00 +0000 (18:33 +0200)]
Backports got integrated into the main archive

From wheezy on we can use the main archive

10 years agoUpdate to git-pbuilder 1.29
Guido Günther [Tue, 17 Sep 2013 16:28:10 +0000 (18:28 +0200)]
Update to git-pbuilder 1.29

10 years agopq: Only print number or tries if we try more than once
Guido Günther [Mon, 16 Sep 2013 17:20:25 +0000 (19:20 +0200)]
pq: Only print number or tries if we try more than once

10 years agopq: print which patch failed to apply
Guido Günther [Mon, 16 Sep 2013 17:08:33 +0000 (19:08 +0200)]
pq: print which patch failed to apply

10 years agotypo s/bei/be/
Osamu Aoki [Tue, 10 Sep 2013 14:38:00 +0000 (23:38 +0900)]
typo s/bei/be/

Closes: #722359

10 years agotests: remove unused import in submodule tests
Markus Lehtonen [Thu, 5 Sep 2013 15:55:33 +0000 (18:55 +0300)]
tests: remove unused import in submodule tests

Change-Id: Ida67f9640624a92ffc1afd90dc33efe01b38db5c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: upper case global variables in submodule tests
Markus Lehtonen [Thu, 5 Sep 2013 15:54:39 +0000 (18:54 +0300)]
tests: upper case global variables in submodule tests

Prevent some confusing name clashes.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: add some docstrings to git submodule tests
Markus Lehtonen [Thu, 5 Sep 2013 15:30:07 +0000 (18:30 +0300)]
tests: add some docstrings to git submodule tests

Change-Id: I0ba9e6b59e2a819b5cde1be6fbb53b8ecbb67025
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: use eq_ and ok_ from nose tools in submodule tests
Markus Lehtonen [Thu, 5 Sep 2013 16:14:32 +0000 (19:14 +0300)]
tests: use eq_ and ok_ from nose tools in submodule tests

For consistency and better assert error messages.

Change-Id: Ie6502daac6cee0176db5f099b91803292c17ceea
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agotests: add test for archiving without git submodules
Markus Lehtonen [Tue, 7 Aug 2012 15:35:17 +0000 (18:35 +0300)]
tests: add test for archiving without git submodules

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository: deprecate the get_remote_repos method
Markus Lehtonen [Thu, 5 Sep 2013 10:08:30 +0000 (13:08 +0300)]
GitRepository: deprecate the get_remote_repos method

Superceded byt the get_remotes() method.

Change-Id: I34f9e8b8188b5a40ce21d2f74e6068f2aaec9e60
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.has_remote_repo: use get_remotes method
Markus Lehtonen [Thu, 5 Sep 2013 10:05:38 +0000 (13:05 +0300)]
GitRepository.has_remote_repo: use get_remotes method

Use the new get_remotes() method

Change-Id: Ic34cf590a6f36e6fa0af2ffbe932c8ae3a198944
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agogit: new class and method for remote repositories
Markus Lehtonen [Thu, 5 Sep 2013 06:53:57 +0000 (09:53 +0300)]
git: new class and method for remote repositories

Add a new GitRemote class for representing git remote repositories.
The initial, very limited, version only contains information about the
fetch and push URLs of the remote repository.

Also, add a new GitRepository.get_remotes() method for getting remote
repositories as instances of the new GitRemote class.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.pull: Add 'all_remotes' option
Lingchaox Xin [Fri, 5 Jul 2013 09:50:48 +0000 (17:50 +0800)]
GitRepository.pull: Add 'all_remotes' option

Also changes the method to utilize the GitArgs class.

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.push: Add 'tags' option
Lingchaox Xin [Wed, 7 Aug 2013 07:16:21 +0000 (15:16 +0800)]
GitRepository.push: Add 'tags' option

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.push: Add 'force' option
Lingchaox Xin [Fri, 5 Jul 2013 09:09:50 +0000 (17:09 +0800)]
GitRepository.push: Add 'force' option

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.list_tree: add 'paths' option
Markus Lehtonen [Fri, 6 Sep 2013 12:06:20 +0000 (15:06 +0300)]
GitRepository.list_tree: add 'paths' option

Change-Id: I9331fec6fcd0e58dad7cb4a571a683e09ce08011
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.diff: add 'ignore_submodules' option
Markus Lehtonen [Fri, 19 Jul 2013 08:43:01 +0000 (11:43 +0300)]
GitRepository.diff: add 'ignore_submodules' option

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agocommon/buildpackage: fix handling of empty tarball prefix
Markus Lehtonen [Tue, 27 Aug 2013 16:22:44 +0000 (19:22 +0300)]
common/buildpackage: fix handling of empty tarball prefix

Previously empty prefix in tarball generation introduced a leading slash
in all filenames in the archive.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd link to online docs
Guido Günther [Thu, 5 Sep 2013 10:14:28 +0000 (12:14 +0200)]
Add link to online docs

10 years agoRemove unused import
Guido Günther [Thu, 5 Sep 2013 09:53:18 +0000 (11:53 +0200)]
Remove unused import

10 years agoComponentTestBase: use eq_() ok_() from nose.tools
Markus Lehtonen [Tue, 3 Sep 2013 07:03:27 +0000 (10:03 +0300)]
ComponentTestBase: use eq_() ok_() from nose.tools

For better assert messages.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.diff: prevent usage of external diff
Markus Lehtonen [Wed, 17 Jul 2013 16:13:42 +0000 (19:13 +0300)]
GitRepository.diff: prevent usage of external diff

External diff might break patch generation, for example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.diff: add 'text' option
Markus Lehtonen [Thu, 6 Jun 2013 20:24:48 +0000 (23:24 +0300)]
GitRepository.diff: add 'text' option

For generating textual diffs. Useful for Pq - for example, the 'patch'
utility does not support git binary diffs.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository: Add clean() method
Markus Lehtonen [Wed, 4 Sep 2013 08:58:21 +0000 (11:58 +0300)]
GitRepository: Add clean() method

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.fetch: Add 'all_remotes' option
Lingchaox Xin [Wed, 7 Aug 2013 07:25:21 +0000 (15:25 +0800)]
GitRepository.fetch: Add 'all_remotes' option

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.fetch: Add 'refspec' option
Lingchaox Xin [Wed, 10 Jul 2013 03:17:46 +0000 (11:17 +0800)]
GitRepository.fetch: Add 'refspec' option

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.describe: add 'tags' and 'extra-match' options
Lingchaox Xin [Thu, 20 Jun 2013 01:34:01 +0000 (09:34 +0800)]
GitRepository.describe: add 'tags' and 'extra-match' options

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository.has_treeish: minor pylint fix
Lingchaox Xin [Wed, 7 Aug 2013 02:24:36 +0000 (10:24 +0800)]
GitRepository.has_treeish: minor pylint fix

Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoComponentTestBase: keep tmpdir if GBP_TESTS_NOCLEAN is in env
Markus Lehtonen [Thu, 29 Aug 2013 14:18:03 +0000 (17:18 +0300)]
ComponentTestBase: keep tmpdir if GBP_TESTS_NOCLEAN is in env

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoimport-orig: import readline in the common module
Markus Lehtonen [Mon, 26 Aug 2013 20:18:39 +0000 (23:18 +0300)]
import-orig: import readline in the common module

Useful common functionality.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoComponentTestBase: fix env restore in teardown
Markus Lehtonen [Thu, 29 Aug 2013 13:14:38 +0000 (16:14 +0300)]
ComponentTestBase: fix env restore in teardown

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoComponentTestBase: more verbose output in case of branch mismatch
Markus Lehtonen [Tue, 27 Aug 2013 17:17:45 +0000 (20:17 +0300)]
ComponentTestBase: more verbose output in case of branch mismatch

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoGitRepository/diff: add 'stat' and 'summary' options
Markus Lehtonen [Thu, 29 Nov 2012 17:17:59 +0000 (19:17 +0200)]
GitRepository/diff: add 'stat' and 'summary' options

For getting diffstat and summary in the output.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoconfig: restore mangled env in doctests
Markus Lehtonen [Thu, 29 Aug 2013 12:50:15 +0000 (15:50 +0300)]
config: restore mangled env in doctests

Otherwise the mangled GBP_CONF_FILES affects also other doctests when
run with python-nose.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: minor sgml syntax fix
Markus Lehtonen [Fri, 30 Aug 2013 17:54:11 +0000 (20:54 +0300)]
docs: minor sgml syntax fix

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agodocs: having an upstream branch is a recommendation
Guido Günther [Thu, 29 Aug 2013 18:11:18 +0000 (20:11 +0200)]
docs: having an upstream branch is a recommendation

rather than a hard requirement, we can use any treeish to build the
upstream tarball from.

10 years agoDocument changes and release 0.6.3 debian/0.6.3
Guido Günther [Wed, 28 Aug 2013 17:37:43 +0000 (19:37 +0200)]
Document changes and release 0.6.3

10 years agoUse open() instead of file()
Guido Günther [Wed, 28 Aug 2013 17:30:12 +0000 (19:30 +0200)]
Use open() instead of file()

since the later doesn't exist in python3

10 years agodocs: remove superfluous at
Guido Günther [Mon, 26 Aug 2013 07:07:26 +0000 (09:07 +0200)]
docs: remove superfluous at

10 years agodocs: Refert to gbp in the introduction
Guido Günther [Wed, 28 Aug 2013 17:25:37 +0000 (19:25 +0200)]
docs: Refert to gbp in the introduction

since this wraps all commands now.

Thanks: Ross Boylan for pointing out that the current wording is confusing.

10 years agopq: exclude patches from Debian packaging branch
Guido Günther [Sat, 24 Aug 2013 09:10:20 +0000 (11:10 +0200)]
pq: exclude patches from Debian packaging branch

When regenerating the patch queue including patches from the Debian
branch is not useful. Addresses parts of See #680705.

Thanks: Benjamin Cama for the detailed analysis

10 years agoGitRepository: allow to use '..' instead of '...'
Guido Günther [Sat, 24 Aug 2013 09:06:11 +0000 (11:06 +0200)]
GitRepository: allow to use '..' instead of '...'

The symmetric difference isn't always useful since it includes changes
from both branches. See #680705.

10 years agodocs: Add recommended branch layout
Guido Günther [Thu, 22 Aug 2013 08:47:15 +0000 (10:47 +0200)]
docs: Add recommended branch layout

It'd be nice to have similar branch layouts among packages so recommend
one that worked well so far.

10 years agoMinor docstring updates
Guido Günther [Thu, 22 Aug 2013 08:22:37 +0000 (10:22 +0200)]
Minor docstring updates

10 years agodch: make automatic adding of new sections more robust
Guido Günther [Wed, 21 Aug 2013 17:21:41 +0000 (19:21 +0200)]
dch: make automatic adding of new sections more robust

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.

10 years agoMove MockedChangelog to testutils
Guido Günther [Wed, 21 Aug 2013 19:10:15 +0000 (21:10 +0200)]
Move MockedChangelog to testutils

and allow to specify the content so we can reuse it for other dch
tests.

11 years ago--git-hooks doesn't take an argument
Guido Günther [Sat, 13 Jul 2013 07:40:14 +0000 (09:40 +0200)]
--git-hooks doesn't take an argument

11 years agoDocument changes and release 0.6.2 debian/0.6.2
Guido Günther [Tue, 9 Jul 2013 19:47:51 +0000 (21:47 +0200)]
Document changes and release 0.6.2

11 years agoBump dephelper dependency
Guido Günther [Tue, 9 Jul 2013 20:12:59 +0000 (22:12 +0200)]
Bump dephelper dependency

11 years agoGitRepository.set_upstream_branch: use --set-upstream-to if available
Guido Günther [Thu, 4 Jul 2013 15:18:29 +0000 (17:18 +0200)]
GitRepository.set_upstream_branch: use --set-upstream-to if available

since --set-upstream is deprecated.

11 years agoGitRepository.set_upstream_branch: Catch errors to set upstream branch
Guido Günther [Thu, 4 Jul 2013 15:00:02 +0000 (17:00 +0200)]
GitRepository.set_upstream_branch: Catch errors to set upstream branch

11 years agoGitRepository.set_upstream_branch: don't try to set upstream twice
Guido Günther [Thu, 4 Jul 2013 15:45:54 +0000 (17:45 +0200)]
GitRepository.set_upstream_branch: don't try to set upstream twice

Move setting of the upstream branch out of the loop. This worked by
accident.

11 years agoGitRepository.set_upstream_branch: Newer git wants a valid remote repo entry
Guido Günther [Thu, 4 Jul 2013 15:36:33 +0000 (17:36 +0200)]
GitRepository.set_upstream_branch: Newer git wants a valid remote repo entry

so set one in the tests before trying to set the upstream branch.

Found with git 1.8.3.2

11 years agoRemove duplicate config files section
Guido Günther [Thu, 4 Jul 2013 08:49:37 +0000 (10:49 +0200)]
Remove duplicate config files section

in the "gbp builpackage" man page

11 years agoAdd gbp buildpackage example
Guido Günther [Thu, 4 Jul 2013 08:38:30 +0000 (10:38 +0200)]
Add gbp buildpackage example

showing git-pbuilder invocation

11 years agoAdd examples for importing upstream sources
Guido Günther [Mon, 1 Jul 2013 21:31:25 +0000 (23:31 +0200)]
Add examples for importing upstream sources

11 years agoFix broken xrefs
Guido Günther [Sun, 30 Jun 2013 21:37:43 +0000 (23:37 +0200)]
Fix broken xrefs

11 years agoAdd symlinks to the manpages for the deprecated commands
Guido Günther [Sun, 30 Jun 2013 21:21:18 +0000 (23:21 +0200)]
Add symlinks to the manpages for the deprecated commands

Closes: #714489

and make lintian happy

11 years agoUpdate Vcs-Browser URL
Guido Günther [Sun, 30 Jun 2013 14:57:46 +0000 (16:57 +0200)]
Update Vcs-Browser URL

11 years agoSwitch to debhelper level 9
Guido Günther [Sun, 30 Jun 2013 14:49:20 +0000 (16:49 +0200)]
Switch to debhelper level 9

which is available in Wheezy

11 years agoMake sure we keep our test coverage
Guido Günther [Sun, 30 Jun 2013 14:34:32 +0000 (16:34 +0200)]
Make sure we keep our test coverage

11 years agoTest succesful import too
Guido Günther [Sun, 30 Jun 2013 14:06:43 +0000 (16:06 +0200)]
Test succesful import too

and make sure we don't spew to stderr during this test

11 years agogbp.git.GitRepository.has_branch(): use _git_command
Guido Günther [Sat, 29 Jun 2013 11:16:38 +0000 (13:16 +0200)]
gbp.git.GitRepository.has_branch(): use _git_command

instead of the deprecated _git_getoutput

11 years agogbp.git.Repository.get_branch(): use _git_command
Guido Günther [Sat, 29 Jun 2013 11:06:43 +0000 (13:06 +0200)]
gbp.git.Repository.get_branch(): use _git_command

instead of the deprecated _git_inout and clarify the return codes and
exceptions raised.