aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
Commit message (Collapse)AuthorAge
...
* config: allow to override default values via add_config_file_optionGuido Günther2018-05-24
|
* push: Allow to skip upstream and debian branch and tag pushGuido Günther2018-05-22
| | | | | | | Push of tag and or branch can be skipped by setting --{upstream,debian}-{branch,tag}='' . Closes: #899234
* deb.git: fix spelling of "described" in docstringKen Dreyer2018-05-22
| | | | | | Fix the docstring for _sanitize_version() and _unsanitize_version() Signed-off-by: Guido Günther <agx@sigxcpu.org>
* deb.git: fix duplicate "tarball" in docstringKen Dreyer2018-05-22
| | | | | | Fix the docstring for create_pristine_tar_commits() Signed-off-by: Guido Günther <agx@sigxcpu.org>
* config: when printing a single value only print the valueGuido Günther2018-04-26
| | | | | This is more in line with what `git config` does and eases usage in scripts.
* import-orig: Better error message when vcs-tag is not foundGuido Günther2018-04-23
| | | | Closes: #896654
* Revert "Turn on several threads when creating xz/lzma tarballs"Guido Günther2018-04-03
| | | | | | This changes the tarballs and therefore the checksums. This reverts commit fd81e454339de50931594bd150857eb88a516a98.
* pq export: Write out patches as UTF-8 if necessarySimon McVittie2018-04-03
| | | | | | | | | | Due to behaviour changes in Python, git-buildpackage would previously write the commit message in the base64 Content-Transfer-Encoding, which is not very readable. Now it uses 8bit. Based on a patch from Carlos Maddela. Closes: #883541
* RollbackDebianGitRepository: quote refs for readabilityGuido Günther2018-02-26
|
* Move rollback code out of import_origGuido Günther2018-02-26
| | | | so it can be reused in gbp import-ref
* 8bit GuidoGuido Günther2018-02-26
|
* Turn on several threads when creating xz/lzma tarballsGuido Günther2018-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | and not using pristine-tar. Gives a 50% speedup on my machine: $ time gbp export-orig --no-pristine-tar --force-create gbp:info: Creating thunderbird_52.6.0.orig.tar.xz from 'upstream/52.6.0' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-thunderbird-l10n.tar.xz' from 'dea43c2b49f11d68f05edac2bd9d6c5d1e1f4bcb' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-lightning-l10n.tar.xz' from '9adcd261726ccb160c4fd6947f7cbfe9df2e581b' real 8m27,153s user 7m23,717s sys 0m3,015s 0|agx@bogon:/var/scratch/debian/icedove/icedove (debian/wheezy)$ time gbp-from-sourcetree export-orig --no-pristine-tar --force-create gbp:info: Creating thunderbird_52.6.0.orig.tar.xz from 'upstream/52.6.0' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-thunderbird-l10n.tar.xz' from 'dea43c2b49f11d68f05edac2bd9d6c5d1e1f4bcb' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-lightning-l10n.tar.xz' from '9adcd261726ccb160c4fd6947f7cbfe9df2e581b' real 4m3,080s user 11m18,733s sys 0m3,499s Thanks: Carsten Schönert for the suggestion Closes: #888572
* Fix another doc stringGuido Günther2018-01-29
| | | | Gbp-Dch: Ignore
* buildpackage-rpm: support setting the 'VCS:' tag in specMarkus Lehtonen2018-01-29
| | | | | | | | | | | | | | | | | Now gbp buildpackage-rpm is able to update the 'VCS:' tag in the exported spec file. A new config option 'spec-vcs-tag' controls the format: - if empty, no 'VCS' tag is inserted and possible old 'VCS' tag is removed - otherwise, a 'VCS' tag is inserted or the old 'VCS' tag is updated The spec-vcs-tag is a format string which supports the following keywords: - '%(commit)' expands to the full commit sha1 - '%(commitish)' expands to the sha1 of the exported object (commit or tag) - '%(tagname)s' expands to the long tag name (from git-describe) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* buildpackage_rpm: re-introduce vcs_info()Markus Lehtonen2018-01-29
| | | | | | This reverts commit 1d44f4863167982419dfbba4f30c712e05afa834. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* gbp-pull: implement --all cmdline optionMarkus Lehtonen2018-01-23
| | | | | | | | This updates all remote-tracking branches (for the remote that is fetched from) whose local branch name is identical to the remote branch name. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: support --upstream-vcs-tag cmdline optionMarkus Lehtonen2018-01-22
| | | | | | Similar to what the option does in git-import-orig. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: implement --skip-packaging-tag optionMarkus Lehtonen2018-01-22
| | | | | | Corresponding the --skip-debian-tag options of import-dsc. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: change commit message of native sourcesMarkus Lehtonen2018-01-22
| | | | | | | Include the full package version in the commit message for native packages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: minor code refactorMarkus Lehtonen2018-01-22
| | | | | | Trying to make the code a bit easier to comprehend. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* config: strip '.py' suffix from commandsGuido Günther2018-01-20
| | | | | | | This makes sure we parse config sections correctly even when running out of the source tree like: PYTHONPATH=. python3 "gbp/scripts/dch.py"
* dch: implement postedit hooksMarkus Lehtonen2018-01-20
| | | | | | | Add new --postedit command line option for defining a custom hook that will be run after changes to the changelog file has been finalized. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* builpackage: look at builder as well when determining the changes file nameGuido Günther2018-01-20
| | | | Closes: #887779
* push: allow to push from detached headsGuido Günther2018-01-19
|
* pq-rpm: implement --drop optionMarkus Lehtonen2018-01-17
| | | | | | | Makes it possible to automatically drop the pq-branch after a successful export. Counterpart for the --drop option of (deb) gbp-pq. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Fix typo in env var namesGuido Günther2018-01-12
| | | | Thanks: Nish Aravamudan for pointing this out
* gbp.git: Python compatibility fixesMarkus Lehtonen2018-01-12
| | | | | | | | | | | Make gbp compatible with older versions of Python 3. As 'bytes' objects do not support the '%' operator until Python v3.5 we introduce a format_b() wrapper that handles this. NOTE: This change should be reverted when Python v3.5 (or newer) has been widely adopted. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* deb.source: Fix typoGuido Günther2018-01-12
| | | | Git-Dch: Ignore
* deb.source: Fix class names in doc stringGuido Günther2018-01-12
| | | | Thanks: Nish Aravamudan
* Make flake8 happyGuido Günther2018-01-01
| | | | Gbp-Dch: Ignore
* patch_series: Don't fail on decoding errors when looking for DEP3 headersGuido Günther2017-12-31
| | | | Closes: #885929
* patch_series: Remove duplicate functionsGuido Günther2017-12-31
| | | | | No need to repeat them in Dep3Patch since the parent class Patch already has them.
* patch_series: don't read dep3 info multiple timesGuido Günther2017-12-31
|
* patch_series: Properly chain up to parent classGuido Günther2017-12-31
| | | | Insted of duplicating the logic use the parent classes _read_info.
* Handle KeyboardInterrupt in pristine_tar, push, rpm_ch and tagGuido Günther2017-12-25
| | | | | to avoid python exceptions on the console. The other commands handle it already.
* pq: Parse DEP3 headersMaximiliano Curia2017-12-24
| | | | | | | | | | | | | | | | | | Currently the patch headers in DEP3 format are partially supported, as git's mailinfo only reads the From and Subject fields from the first paragraph. But the default in dep3 patches is Description and Author, that are ignored by git. Even worse, when this fields are in the first paragraph (again the default) git mailinfo drops all the contained information. This patch parses the dep3 headers if git's mailinfo couldn't obtain any useful information, any header other than Subject|Description and Author|From is appended to the patch message. The description field is splitted in first line for the short description and the rest is prepended to the patch message. Closes: #785274
* rpm.SpecFile: support %autosetupMarkus Lehtonen2017-12-16
| | | | | | | | | Try to do "the right thing" when %autosetup macro is used in the spec file. That is, do not examine/manage %patch macros at all, but, assume that patches are handled by %autosetup which was introduced in RPM v4.11. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* create_remote_repo: fix typoMarkus Lehtonen2017-12-16
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Fix complaints of flake8 3.5Guido Günther2017-12-10
|
* pristine-tar: print upstream version number on importGuido Günther2017-12-10
| | | | Printing the debian version might be confusing
* hooks: print hook name prior to executionGuido Günther2017-12-01
| | | | This makes it simpler to identify build steps
* dch: Create changelog if missingGuido Günther2017-11-27
| | | | | Closes: #669171 Thanks: Daniel Dehennin for the groundwork on this
* 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
* DebianSource: provide mapping for control file as wellGuido Günther2017-11-27
| | | | | | | This makes sure we have the logic to access these files in debian/ in one place. Gbp-Dch: Ignore
* DebianSource: document toplevel requirementGuido Günther2017-11-27
| | | | Gbp-Dch: Ignore
* ChangeLog: don't raise Exception()Guido Günther2017-11-27
| | | | It's too generic
* ChangeLog: add class method to create empty changelogsGuido Günther2017-11-27
|
* ChangeLog: capture debchange errors instead of spewing on stderrGuido Günther2017-11-27
|
* ChangeLog: don't use lists as default argumentsGuido Günther2017-11-27
| | | | Gbp-Dch: Ignore
* dch: allow to reraise exceptionsGuido Günther2017-11-27
| | | | | | | | This eases debugging since we can do GBP_DEBUG=raise gbp dch … and get the exception trace without modifying the source