summaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Document changes and release 0.6.25debian/0.6.25Guido Günther2015-04-27
|
* gbp-dch: Document newly introduced upstream-branchDaniel Gollub2015-04-27
| | | | | | | With aa8548d5 the newly introduced gbp-dch option --upstream-branch got introduced. Closes: #gh10
* Guess upstream-tag based on merge-baseDaniel Gollub2015-04-25
| | | | | | | | | | | | | | | | | | | | | In some unfortunate cases you might have something like this: $ git tag v1.0 vyatta/1.0-0something1 ... where later tag is closer to describe current HEAD. With upstream-tag set to v%(version)s find_tag() is going to propose something based on vyatta/1.0-0something1 which is not expected. The problem is that find_tag() returns tags, which match the upstream-tag format, but which are not on the upstream-branch at all. To fix this find_tag()/git-describe should not be used to determine the closest upstream-tag. Closes: gh#7
* docs: Fix diirectory->directory typo in gbp.conf manpageMartin Erik Werner2015-04-20
| | | | | | | Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com> Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #783013
* gbp.rpm: use format_str for composing tag nameMarkus Lehtonen2015-04-02
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Command: strip newlines from stdout/err in error msgMarkus Lehtonen2015-04-01
| | | | | | | | Strip extra linefeeds from stdout and stderr output (if captured) when generating the error message, so that the error message itself would not have any unwanted linefeeds. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* gbp.format: rename format_msg() to format_str()Markus Lehtonen2015-04-01
| | | | | | | The new name more precisely describes it as it can be used to format any strings (e.g. tag names) and not only messages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* notifications: make notify() more genericMarkus Lehtonen2015-04-01
| | | | | | In order to be able to re-use it in gbp-buildpackage-rpm. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Depend on cpioGuido Günther2015-04-01
| | | | needed by gbp import-srpm
* Add cpio t Build-DepsGuido Günther2015-04-01
| | | | since the SrcRpmFile tests require it
* SrcRpmFile: Add stderr to error messagesGuido Günther2015-04-01
| | | | | | so we can better debug failures like http://honk.sigxcpu.org:8001/job/git-buildpackage/230/changes
* rpm tests: unbreak spec parsing test for openSUSE 13.2Markus Lehtonen2015-04-01
| | | | | | Some SUSE-specific RPM tags are not supported anymore. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* rpm tests: disable one anomalous pylint errorMarkus Lehtonen2015-04-01
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: add unit tests for gbp.rpm.SrcRpmFileMarkus Lehtonen2015-04-01
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Add string vs. binary encoding/decodingGuido Günther2015-03-27
| | | | for Python3 compatibility
* Ignore long lines with pep8Guido Günther2015-03-27
| | | | | We want to get there eventually but having this on now is just too much noise.
* Add string vs. binary encoding/decodingGuido Günther2015-03-27
| | | | for Python3 compatibility
* Use six.StringIOGuido Günther2015-03-27
| | | | | | to work towards Python3 support Gbp-Dch: Ignore
* testutils: Add a context manager to capture stderrGuido Günther2015-03-27
| | | | and use it to test the help output
* testutils: Fix __all__Guido Günther2015-03-27
| | | | The values weren't correctly seperated
* Don't let pristine-tar spew on stderrGuido Günther2015-03-27
| | | | | Capture its output and only dump it on failure. This makes "gbp import-orig" and test runs less verbose.
* command_wrapper: Make error reporting more flexibleGuido Günther2015-03-27
| | | | | | We allow to substitute stderr, stdout and error_reason in run_error now. These changes the API for derived classses slightly so fix them up as well.
* config test: fix missing prefixGuido Günther2015-03-27
| | | | We want to test no prefix, 'gbp-' and 'git-'.
* gbplogtester: Reliably remove all handlersGuido Günther2015-03-27
| | | | | So far we were modifying the list of handlers in place which resulted in all handlers being removed at the second call to _capture_log only.
* gbplogtester: Make sure log capture start is followed by a log capture stopGuido Günther2015-03-27
|
* gbplogtester: add helper to test for empty logGuido Günther2015-03-27
|
* tests: minor test case cleanupsGuido Günther2015-03-27
| | | | Remove unused imports, remove unused variables or actually use them
* Command: simplify __call__ and callGuido Günther2015-03-27
| | | | | | | Get rid of __run and use the same codepaths for both. This also makes the same instance variables available after both calls. The funtions still differ in their default logging behaviour though.
* Command: allow to capture stdout tooGuido Günther2015-03-27
| | | | For symmetry with capture_stderr
* Update docs on component tests and mailing listGuido Günther2015-03-27
|
* Improve error messageGuido Günther2015-03-27
|
* Fix print function usage in examples tooGuido Günther2015-03-27
|
* Extract exception message in a less arcane wayGuido Günther2015-03-27
|
* Turn off coverage output by defaultGuido Günther2015-03-27
| | | | It's much simpler to spot the cause of test failures this way.
* Remove unused variableGuido Günther2015-03-26
| | | | Git-Dch: Ignore
* Fix paragraph indentation for epydocGuido Günther2015-03-20
|
* Add %(hversion)s to version_to_tag to support some upstreamsDaniel Kahn Gillmor2015-03-18
| | | | | | | | | | enigmail upstream uses tags named enigmail-1-8 for 1.8. Other upstreams have used similar conventions, likely as holdovers from CVS (e.g. gnupg 1.4.2 was tagged with V1-4-2). This patch helps packagers work with these upstreams. Closes: #780679 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Allow to set upstream-vcs-tag via gbp.confDaniel Kahn Gillmor2015-03-16
| | | | | | | | | | Also pass it through version_to_tag so upstream-vcs-tag = libgpg-error-%(version)s properly expands the version replacement. Closes: #780602
* GitRepository/has_submodules: add treeish argumentMarkus Lehtonen2015-02-25
| | | | | | | 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>
* tests: one more testcase for GitRepository.diff()Markus Lehtonen2015-02-25
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* config: modify configparser import statementMarkus Lehtonen2015-02-25
| | | | | | | | | | | | 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>
* Remove unused importGuido Günther2015-02-21
| | | | and pylint exception that doesn't trigger
* Remove unused variableGuido Günther2015-02-21
|
* Ignore first part of type outputGuido Günther2015-02-21
| | | | | Types are classes in python3 so we get 'class' instead of 'type'. Ignore that detail in the matcher since it's not relevanthere.
* gbp.format: fix one typo and indentationMarkus Lehtonen2015-02-20
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tristate: implement __nonzero__() methodMarkus Lehtonen2015-02-20
| | | | | | Returns False if tristate is 'off', otherwise True ('on' or 'auto'). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* rpm tests: use eq_ and ok_ from nose toolsMarkus Lehtonen2015-02-20
| | | | | | | 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>
* tests: add tests for UpstreamSource.guess_version()Markus Lehtonen2015-02-20
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* UpstreamSource.guess_version: recognise debian native tarballsMarkus Lehtonen2015-02-20
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Document changes and release 0.6.24debian/0.6.24Guido Günther2015-02-20
|