summaryrefslogtreecommitdiffhomepage
path: root/tests/03_test_dch_guess_version.py
Commit message (Collapse)AuthorAge
* guess_version_from_upstream: allow to work without a changelogGuido Günther2017-11-27
| | | | | | | This makes it usable when creating changelogs but it can also be useful when we don't want to compare to changelog version. Gbp-Dch: Ignore
* dch: unmangle upstream_tag when guessing upstream versionChristos Trochalakis2017-07-10
| | | | | | | Running `gbp dch` with a mangled upstream tag resulted in a KeyError while trying to build a tag pattern. Signed-off-by: Guido Günther <agx@sigxcpu.org>
* pep8/pyflakes cleanupsGuido Günther2016-09-12
|
* Restore correct version-guessing for -0releasesDaniel Gollub2015-09-01
| | | | | | | | | | | With commit 59254996d740b8b8a0db306a7e04950a5f4e51b8 the version guessing behavior changed. gbp dch --release suggested to bump the package version from: 1.0-0vyatta1 to 1.0-1 Old and expected beahviour is: 1.0-0vyatta2 Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: gh#10
* 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
* Use relative importGuido Günther2015-02-20
| | | | so Python3 can cope as well
* Use relative import for testutilsGuido Günther2015-02-20
|
* Move MockedChangelog to testutilsGuido Günther2013-08-21
| | | | | and allow to specify the content so we can reuse it for other dch tests.
* tests: Use tempfile.mkdtemp to create temp dirs for testsThomas Koch2013-04-08
| | | | | | | This puts test dirs below /tmp which often is a tmpfs. All tests include the context module which consolidates tmpdir creation and cleanup, undoes a chdir in teardown and silences log messages.
* Split out building a debian version from an upstream commitGuido Günther2013-03-27
| | | | | | based on a patch by Daniel Dehennin Needed for #672954, #646684, #669171
* Rename and comment testsGuido Günther2011-12-29
| | | | Git-Dch: Ignore
* dch: Honor epoch when guessing new upstream versionGuido Günther2011-12-28
Closes: #652366 Thanks: a lot to Daniel Dehennin for the testcase