Guido Günther [Sat, 21 Feb 2015 11:30:38 +0000 (12:30 +0100)]
Remove unused import
and pylint exception that doesn't trigger
Guido Günther [Thu, 19 Feb 2015 15:00:12 +0000 (16:00 +0100)]
Remove unused variable
Guido Günther [Thu, 19 Feb 2015 21:40:31 +0000 (22:40 +0100)]
Ignore first part of type output
Types are classes in python3 so we get 'class' instead of 'type'.
Ignore that detail in the matcher since it's not relevanthere.
Markus Lehtonen [Tue, 3 Feb 2015 13:56:58 +0000 (15:56 +0200)]
gbp.format: fix one typo and indentation
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Mon, 2 Jun 2014 07:14:52 +0000 (10:14 +0300)]
tristate: implement __nonzero__() method
Returns False if tristate is 'off', otherwise True ('on' or 'auto').
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Tue, 18 Nov 2014 14:57:24 +0000 (16:57 +0200)]
rpm tests: use eq_ and ok_ from nose tools
Provides better error messages as is more consistent as eq_ was already
used in some test cases.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 25 Jul 2014 05:58:23 +0000 (08:58 +0300)]
tests: add tests for UpstreamSource.guess_version()
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Thu, 6 Jun 2013 11:53:45 +0000 (14:53 +0300)]
UpstreamSource.guess_version: recognise debian native tarballs
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Fri, 20 Feb 2015 18:29:54 +0000 (19:29 +0100)]
Document changes and release 0.6.24
Guido Günther [Fri, 20 Feb 2015 16:18:05 +0000 (17:18 +0100)]
Don't output additional newlines
introduced by
0a4725c045a5a55592dafd41c6ef6f9bab4791cd
Guido Günther [Fri, 20 Feb 2015 16:08:03 +0000 (17:08 +0100)]
Development now on master
Gbp-Dch: Ignore
Guido Günther [Fri, 20 Feb 2015 16:06:16 +0000 (17:06 +0100)]
bash-completion: Avoid a pointless fork
Guido Günther [Fri, 20 Feb 2015 15:58:01 +0000 (16:58 +0100)]
Move requests import to downloads
The requests import takes ages and therefore considerably slows
down program start up.
This is very much noticeably during bash completion. Before:
$ time gbp --list-cmds >/dev/null
real 0m0.559s
user 0m0.528s
sys 0m0.028s
After:
$ time gbp --list-cmds >/dev/null
real 0m0.092s
user 0m0.088s
sys 0m0.000s
Guido Günther [Thu, 19 Feb 2015 14:09:06 +0000 (15:09 +0100)]
Only use absolute import
since searching both isn't supported in Python3. Since the tests are run
from the toplevel dir we'll pick up the right scripts.
Guido Günther [Thu, 19 Feb 2015 11:50:55 +0000 (12:50 +0100)]
Don't use basestring
to work toward Python3 support
Guido Günther [Thu, 19 Feb 2015 15:16:27 +0000 (16:16 +0100)]
Use verbose output
so we see all git commands
Guido Günther [Thu, 19 Feb 2015 13:13:06 +0000 (14:13 +0100)]
Handle renamed urlparse in Python3
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 12:09:31 +0000 (13:09 +0100)]
Use six.iteritems() and six.iterkeys()
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 13:18:00 +0000 (14:18 +0100)]
Handle Python3's changed octal literal syntax
Guido Günther [Thu, 19 Feb 2015 13:34:48 +0000 (14:34 +0100)]
Use relative import
so Python3 can cope as well
Guido Günther [Thu, 19 Feb 2015 21:41:02 +0000 (22:41 +0100)]
Convert result to list
Python3 returns a dict_items obj
Guido Günther [Thu, 19 Feb 2015 22:26:42 +0000 (23:26 +0100)]
Use email.utils instead of email.Utils
works with python 2 and 3
Guido Günther [Fri, 20 Feb 2015 08:21:26 +0000 (09:21 +0100)]
Use open() instead of file()
The former is supported with python3
Guido Günther [Thu, 19 Feb 2015 22:45:48 +0000 (23:45 +0100)]
Use relative import for testutils
Guido Günther [Thu, 19 Feb 2015 11:57:47 +0000 (12:57 +0100)]
Don't rely on dictionary key order
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 11:32:22 +0000 (12:32 +0100)]
Use six.StringIO
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 15:02:23 +0000 (16:02 +0100)]
Don't use dict.has_key()
Not existent in Python3
Guido Günther [Thu, 19 Feb 2015 11:30:54 +0000 (12:30 +0100)]
Handle ConfigParser -> configparser rename
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 10:29:43 +0000 (11:29 +0100)]
Don't use print as a statement
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 11:28:00 +0000 (12:28 +0100)]
Require six
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 11:01:35 +0000 (12:01 +0100)]
Convert zip and map to list
to work towards Python3 support
Gbp-Dch: Ignore
Guido Günther [Thu, 19 Feb 2015 11:43:24 +0000 (12:43 +0100)]
Ignore return types of write and shutil.copy
Python3 does not return None anymore
Guido Günther [Wed, 18 Feb 2015 13:07:23 +0000 (14:07 +0100)]
Remove unused import
Gbp-Dch: Ignore
Markus Lehtonen [Wed, 3 Dec 2014 14:40:46 +0000 (16:40 +0200)]
rpm: suppress stderr when unpacking src.rpm
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Mon, 24 Nov 2014 17:12:37 +0000 (19:12 +0200)]
patchseries: strip numbering when guessing subject from filename
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Thu, 26 Jun 2014 10:35:19 +0000 (13:35 +0300)]
ComponentTestBase: ignore system and user config
User might have a system and/or user specific gbp config files. Disable
these config files so that they don't affect the component tests.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Tue, 10 Feb 2015 15:14:18 +0000 (17:14 +0200)]
tests: restore logger module after tampering it
So that subsequent log capture (by GbpLogTester) is not affected.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 28 Nov 2014 17:10:04 +0000 (19:10 +0200)]
import-srpm: support gbp-config command
Slight refactoring of argument parsing so that the gbp-config command is
able to show the config values.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Tue, 17 Feb 2015 07:46:41 +0000 (08:46 +0100)]
Drop all gbp-* and git-* commands
as announced in the deprecation notice from June 2013.
Dmitrij Tejblum [Sun, 8 Feb 2015 10:23:55 +0000 (13:23 +0300)]
git-dch --git-author: separate author and email
Allow --git-author to work if either author or email is not specified
in the git config, taking the other config option into account.
Guido Günther [Sun, 8 Feb 2015 16:11:08 +0000 (17:11 +0100)]
Bump standards version
Guido Günther [Sun, 8 Feb 2015 15:32:03 +0000 (16:32 +0100)]
Add gbp.conf for experimental
Guido Günther [Sun, 8 Feb 2015 14:15:03 +0000 (15:15 +0100)]
parse_gbp_commands: support command filtering
When we write out patches to subdirs using a topic we want to filter out
this topic from the commit message. Support for this was lost in
7ce15d2434ee42aa5a1afce3d03069c5efb2db1b
add it back. Also fix parsing of the deprecated commands.
Guido Günther [Thu, 29 Jan 2015 09:04:27 +0000 (10:04 +0100)]
pq: Generate new style Gbp-Pq: Topic <topic> entries
We shouldn't generate the deprecated ones
Markus Lehtonen [Wed, 4 Sep 2013 13:16:59 +0000 (16:16 +0300)]
pq: deprecate the usage of 'gbp-pq-topic:'
Replaced by the "Gbp[-Pq]: Topic <topic>" command.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Sat, 31 Jan 2015 14:02:38 +0000 (15:02 +0100)]
repository: fix head docstring
head is not a function so it doesn't _return_ anything
Gbp-Dch: Ignore
Guido Günther [Thu, 29 Jan 2015 08:25:38 +0000 (09:25 +0100)]
buildpackage: Tag currently checked out head
Tag the head checked out at command invocation. The build can
take some time and the repo might have changed underneath us.
Closes: #776506
Guido Günther [Thu, 29 Jan 2015 09:51:29 +0000 (10:51 +0100)]
Revert "pq: deprecate the usage of 'gbp-pq-topic:'"
"Gbp-Pq: Topic <topic>" leaves the marker in the exorted patch so we
shouldn't use it by default.
This reverts commit
7ce15d2434ee42aa5a1afce3d03069c5efb2db1b.
Guido Günther [Tue, 18 Feb 2014 21:55:45 +0000 (22:55 +0100)]
config: Deprecate legacy config sections
We deprecate sections starting with git- and gbp- to reduce the
confusion about what gets parsed first.
Guido Günther [Sun, 25 Jan 2015 14:10:12 +0000 (15:10 +0100)]
testutils: split out DebianGitTestRepo
Gbp-Dch: Ignore
Guido Günther [Sun, 25 Jan 2015 13:37:59 +0000 (14:37 +0100)]
testutils: Move log test helpers to separate class
so we can use them in the unit tests as well
Guido Günther [Sun, 25 Jan 2015 13:37:37 +0000 (14:37 +0100)]
Move testutils to separate module
Markus Lehtonen [Wed, 4 Sep 2013 13:16:59 +0000 (16:16 +0300)]
pq: deprecate the usage of 'gbp-pq-topic:'
Replaced by the "Gbp[-Pq]: Topic <topic>" command.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Thu, 22 Jan 2015 20:37:43 +0000 (21:37 +0100)]
dch: Support Gbp-Dch: besides Git-Dch:
Guido Günther [Thu, 22 Jan 2015 13:21:33 +0000 (14:21 +0100)]
Make Debian and Git spelling consistent
Guido Günther [Thu, 22 Jan 2015 21:22:43 +0000 (22:22 +0100)]
vfs: remove wrong docstring
Gbp-Dch: Ignore
Guido Günther [Thu, 22 Jan 2015 20:34:44 +0000 (21:34 +0100)]
pristinetar: fix docstring
Gbp-Dch: Ignore
Guido Günther [Sun, 18 Jan 2015 14:30:25 +0000 (15:30 +0100)]
Document changes and release 0.6.23
Guido Günther [Fri, 12 Sep 2014 12:26:52 +0000 (14:26 +0200)]
import-orig: Add --download option
to download tarballs via HTTP
Closes: #747101
Markus Lehtonen [Thu, 12 Jan 2012 13:38:29 +0000 (15:38 +0200)]
Introduce gbp-pq-rpm
Initial version of gbp-pq-rpm - a tool for managing patch queues for rpm
packages. The functionality more or less corresponds to that of the
(Debian) gbp-pq. The only major difference probably being (in addition
to the obvious of working with .spec files instead of debian/) is that
patches are always imported on top of the upstream version, not on top
of the packaging branch (which might not even contain any source code).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Olev Kartau <olev.kartau@intel.com>
Guido Günther [Sun, 28 Dec 2014 12:36:22 +0000 (13:36 +0100)]
Fix argument type
Markus Lehtonen [Fri, 6 Jul 2012 06:58:06 +0000 (09:58 +0300)]
config: read the right config if run from subdir
A step towards being able to run GBP tools from subdirectories.
Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root
of the working directory and git metadata directory, respectively.
Also, adds a new method _read_config_file() in preparation for
supporting per-tree config files.
Fixes tests.test_Config: currently the only correct way to define the
config file(s) to be parsed is by using the GBP_CONF_FILES environment
variable.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Sun, 28 Dec 2014 12:09:05 +0000 (13:09 +0100)]
test data: Add .git for bare repository
Markus Lehtonen [Tue, 17 Sep 2013 12:13:40 +0000 (15:13 +0300)]
buildpackage/dump_tree: add 'recursive' option
For selecting whether to dump all the files recursively or just the top
level directory of the tree.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Wed, 24 Dec 2014 08:25:30 +0000 (09:25 +0100)]
pq: print which patch got just applied
Markus Lehtonen [Thu, 10 Jul 2014 08:26:19 +0000 (11:26 +0300)]
log: fix auto colorizing for custom streams
Check for existence of isatty() method in the stream object. Some custom
streams (e.g. in nose) do not necessarily have this.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Thu, 12 Jun 2014 09:04:09 +0000 (12:04 +0300)]
notify: catch RuntimeError when importing pynotify
Work around a problem in some distros (e.g. Fedora) where "import
pynotify" crashes in RuntimeError in some cases, e.g. when DISPLAY env
variable is not set.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 6 Jun 2014 07:22:31 +0000 (10:22 +0300)]
gbp-dch: fix handling of the '--meta' option
Make it effective again - previously it was totally ignored. Also,
change it's default value to True to match the current behavior.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Ed Bartosh [Wed, 6 Jun 2012 11:45:44 +0000 (14:45 +0300)]
GitRepository: Implement status method
Simple wrapper to the git-status command.
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 18 Jul 2014 12:37:48 +0000 (15:37 +0300)]
ComponentTestBase: add dirs argument to _check_repo_state()
Make difference between regular files and directories, eliminating the
requirement of listing directories in the file list.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Thu, 26 Jun 2014 07:01:18 +0000 (10:01 +0300)]
ComponentTestBase: add check_files() method
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Wed, 2 Oct 2013 13:35:32 +0000 (16:35 +0300)]
ComponentTestBase: add a per-class toplevel temp dir
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 13 Sep 2013 06:53:16 +0000 (09:53 +0300)]
GitRepository.create_branch: add 'force' option
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 14 Sep 2012 10:40:14 +0000 (13:40 +0300)]
GitRepository: add diff_status method
This is a method of getting the filename and status information of a
diff. That is, a list of files that changed and their status, "added",
"modified" etc.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Markus Lehtonen [Fri, 28 Nov 2014 16:28:51 +0000 (18:28 +0200)]
pq: move switch_pq() to common
So that it can be re-used by the upcoming pq-rpm tool.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Guido Günther [Wed, 29 Oct 2014 06:47:29 +0000 (07:47 +0100)]
Document changes and release 0.6.22
Guido Günther [Wed, 29 Oct 2014 06:46:35 +0000 (07:46 +0100)]
git.vfs: fix close method
Preventing a infinite recursion which can be triggered by gbp pq export
--commit.
Guido Günther [Fri, 17 Oct 2014 16:41:21 +0000 (18:41 +0200)]
Document changes and release 0.6.21
Guido Günther [Fri, 17 Oct 2014 16:29:15 +0000 (18:29 +0200)]
Update README a bit
Git-Dch: Ignore
Guido Günther [Fri, 17 Oct 2014 16:24:01 +0000 (18:24 +0200)]
Complete setup.py for pypi
Guido Günther [Fri, 17 Oct 2014 15:31:48 +0000 (17:31 +0200)]
Improve change reporting a bit
Guido Günther [Fri, 17 Oct 2014 11:01:34 +0000 (13:01 +0200)]
man: fix option argument for --git-pbuilder-options
Guido Günther [Tue, 14 Oct 2014 17:18:20 +0000 (19:18 +0200)]
pq: Don't fail commit if the series file is empty on the source branch
Guido Günther [Sun, 12 Oct 2014 09:42:52 +0000 (11:42 +0200)]
Document changes and release 0.6.20
Guido Günther [Sat, 6 Sep 2014 11:40:14 +0000 (13:40 +0200)]
pq: Add "pq export --commit" option
This commits the changes in the pq right away. This is currently
experimental and subject to change.
Guido Günther [Fri, 26 Sep 2014 08:31:48 +0000 (10:31 +0200)]
meta-closes: Move help text to GbpOptionParser.help
Guido Günther [Sat, 13 Sep 2014 10:53:15 +0000 (12:53 +0200)]
pq: document --drop
Guido Günther [Fri, 12 Sep 2014 11:05:47 +0000 (13:05 +0200)]
Allow to always drop pq branch after export
Closes: #761160
Guido Günther [Sun, 7 Sep 2014 07:25:53 +0000 (09:25 +0200)]
Document changes and release 0.6.19
Guido Günther [Sun, 7 Sep 2014 07:25:30 +0000 (09:25 +0200)]
Update to git-pbuilder 1.33
Guido Günther [Sat, 6 Sep 2014 11:41:27 +0000 (13:41 +0200)]
Document changes and release 0.6.18
Guido Günther [Mon, 1 Sep 2014 07:36:11 +0000 (09:36 +0200)]
Mention --no-merge
Closes: #760091
Guido Günther [Tue, 26 Aug 2014 09:08:27 +0000 (11:08 +0200)]
Don't delete *_source.changes on source only builds
Closes: #758726
Guido Günther [Sun, 24 Aug 2014 09:31:57 +0000 (11:31 +0200)]
Document changes and release 0.6.17
Guido Günther [Sun, 24 Aug 2014 09:24:52 +0000 (11:24 +0200)]
bash completion: make command list dynamic
Use "gbp --list-cmds" so we don't have to hardcode the available
commands and get support for the RPM ones as they show up.
Guido Günther [Sat, 23 Aug 2014 16:18:10 +0000 (18:18 +0200)]
Unify doc strings a bit
since they now show up with --list-cmds
Guido Günther [Sat, 23 Aug 2014 16:10:16 +0000 (18:10 +0200)]
Allow to list all available commands
Guido Günther [Sat, 23 Aug 2014 13:14:18 +0000 (15:14 +0200)]
gbp: add --version option
Closes: #758909
Guido Günther [Tue, 19 Aug 2014 18:07:35 +0000 (20:07 +0200)]
Improve error messages on formatting errors
Make it easier for the user to detect misformated replacement strings in
config files and command line options.
Kamal Mostafa [Tue, 19 Aug 2014 15:14:47 +0000 (17:14 +0200)]
buildpackage: Make debian-tag message configurable
New config option --git-debian-tag-msg allows for the specification of
the message format string for signed debian-tags.
When left unset, the default debian-tag-msg format is still:
%(pkg)s Debian release %(version)s
Signed-off-by: Kamal Mostafa <kamal@whence.com>