summaryrefslogtreecommitdiff
path: root/gbp
AgeCommit message (Collapse)Author
2015-03-16Allow to set upstream-vcs-tag via gbp.confDaniel Kahn Gillmor
Also pass it through version_to_tag so upstream-vcs-tag = libgpg-error-%(version)s properly expands the version replacement. Closes: #780602
2015-02-25GitRepository/has_submodules: add treeish argumentMarkus Lehtonen
For defining a Git treeish which to look into, instead of the current working copy. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-25config: modify configparser import statementMarkus Lehtonen
Usage of six.moves.configparser in the previous way failed at least with some versions of python-six (e.g. 1.4.1) like > >>> from six.moves.configparser import SafeConfigParser > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named configparser Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-21Remove unused variableGuido Günther
2015-02-20gbp.format: fix one typo and indentationMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20tristate: implement __nonzero__() methodMarkus Lehtonen
Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20UpstreamSource.guess_version: recognise debian native tarballsMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-20Don't output additional newlinesGuido Günther
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
2015-02-20Move requests import to downloadsGuido Günther
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
2015-02-20Don't use basestringGuido Günther
to work toward Python3 support
2015-02-20Handle renamed urlparse in Python3Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Use six.iteritems() and six.iterkeys()Guido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Handle Python3's changed octal literal syntaxGuido Günther
2015-02-20Use email.utils instead of email.UtilsGuido Günther
works with python 2 and 3
2015-02-20Don't rely on dictionary key orderGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Use six.StringIOGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Don't use dict.has_key()Guido Günther
Not existent in Python3
2015-02-20Handle ConfigParser -> configparser renameGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Don't use print as a statementGuido Günther
via 2to3-3.4 -w -f print . to work towards python3 support Gbp-Dch: Ignore
2015-02-20Convert zip and map to listGuido Günther
to work towards Python3 support Gbp-Dch: Ignore
2015-02-20Ignore return types of write and shutil.copyGuido Günther
Python3 does not return None anymore
2015-02-20Remove unused importGuido Günther
Gbp-Dch: Ignore
2015-02-18rpm: suppress stderr when unpacking src.rpmMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18patchseries: strip numbering when guessing subject from filenameMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18tests: restore logger module after tampering itMarkus Lehtonen
So that subsequent log capture (by GbpLogTester) is not affected. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-02-18import-srpm: support gbp-config commandMarkus Lehtonen
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>
2015-02-17git-dch --git-author: separate author and emailDmitrij Tejblum
Allow --git-author to work if either author or email is not specified in the git config, taking the other config option into account.
2015-02-08parse_gbp_commands: support command filteringGuido Günther
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.
2015-02-08pq: Generate new style Gbp-Pq: Topic <topic> entriesGuido Günther
We shouldn't generate the deprecated ones
2015-02-08pq: deprecate the usage of 'gbp-pq-topic:'Markus Lehtonen
Replaced by the "Gbp[-Pq]: Topic <topic>" command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-01-31repository: fix head docstringGuido Günther
head is not a function so it doesn't _return_ anything Gbp-Dch: Ignore
2015-01-29buildpackage: Tag currently checked out headGuido Günther
Tag the head checked out at command invocation. The build can take some time and the repo might have changed underneath us. Closes: #776506
2015-01-29Revert "pq: deprecate the usage of 'gbp-pq-topic:'"Guido Günther
"Gbp-Pq: Topic <topic>" leaves the marker in the exorted patch so we shouldn't use it by default. This reverts commit 7ce15d2434ee42aa5a1afce3d03069c5efb2db1b.
2015-01-25config: Deprecate legacy config sectionsGuido Günther
We deprecate sections starting with git- and gbp- to reduce the confusion about what gets parsed first.
2015-01-25pq: deprecate the usage of 'gbp-pq-topic:'Markus Lehtonen
Replaced by the "Gbp[-Pq]: Topic <topic>" command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2015-01-22dch: Support Gbp-Dch: besides Git-Dch:Guido Günther
2015-01-22Make Debian and Git spelling consistentGuido Günther
2015-01-22vfs: remove wrong docstringGuido Günther
Gbp-Dch: Ignore
2015-01-22pristinetar: fix docstringGuido Günther
Gbp-Dch: Ignore
2015-01-18import-orig: Add --download optionGuido Günther
to download tarballs via HTTP Closes: #747101
2014-12-29Introduce gbp-pq-rpmMarkus Lehtonen
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>
2014-12-28Fix argument typeGuido Günther
2014-12-28config: read the right config if run from subdirMarkus Lehtonen
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>
2014-12-28buildpackage/dump_tree: add 'recursive' optionMarkus Lehtonen
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>
2014-12-28pq: print which patch got just appliedGuido Günther
2014-12-05log: fix auto colorizing for custom streamsMarkus Lehtonen
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>
2014-12-05notify: catch RuntimeError when importing pynotifyMarkus Lehtonen
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>
2014-12-05gbp-dch: fix handling of the '--meta' optionMarkus Lehtonen
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>
2014-12-05GitRepository: Implement status methodEd Bartosh
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>
2014-12-05GitRepository.create_branch: add 'force' optionMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>