summaryrefslogtreecommitdiff
path: root/gbp/scripts/pq.py
AgeCommit message (Collapse)Author
2014-01-05Avoid backtrace on config file parse errorsGuido Günther
"gbp buildpackage" did this already but others didn't Closes: #733759
2013-10-31pq: support 'Topic' patch-export commandMarkus Lehtonen
Topic can be defined with either 'Gbp: Topic <topic>' or 'Gbp-Pq: Topic <topic>' in the commit message. This is to replace the "gbp-pq-topic: <topic>" command. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-10-31pq: listen to 'Gbp-Pq:' commands, tooMarkus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-10-31pq: support patch-export commandsMarkus Lehtonen
Support giving commands to pq as a meta tag in commit message. The format is "Gbp: <command> [args]". Currently, only one command is supported. namely 'ignore'. That is, one can use 'Gbp: Ignore' in the commit message for ignoring the commit in patch-generation. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-10-31pq: rewrite patch export functionalityMarkus Lehtonen
Use our own function for constructing the patch files instead of using the format-patch command of git. This way, we get the desired output format directly, without the need for the error-prone "format-patch, parse patch files, mangle and re-write patch files" cycle. Also, fix patch naming in patch generation when '--no-patch-numbers' is used. Previously, multiple commits with the same subject resulted in multiple patches having the same filename. This lead into broken series with missing patches as patch files were overwritten by the topmost commit. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-16pq: Only print number or tries if we try more than onceGuido Günther
2013-09-16pq: print which patch failed to applyGuido Günther
2013-08-28Use open() instead of file()Guido Günther
since the later doesn't exist in python3
2013-08-24pq: exclude patches from Debian packaging branchGuido Günther
When regenerating the patch queue including patches from the Debian branch is not useful. Addresses parts of See #680705. Thanks: Benjamin Cama for the detailed analysis
2013-01-16pq: do author guessing outside the apply_patch functionsMarkus Lehtonen
Call the author parsing/guessing function outside the apply patch functions. This way, the caller can decide when to do the guessing, and with which parameters. Now the apply_patch functions do what their name suggests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-25New configuration option for setting the output color schemeMarkus Lehtonen
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-11-24gbp-pq: don't use plural form when there's only one try leftGuido Günther
2012-11-23pq: Allow to pass in custom fucntion to fetch authorship informationGuido Günther
so the RPM based tools don't need to rely on a control file but can e.g. look at the spec file.
2012-10-25Print number of tries leftGuido Günther
2012-10-25PEP-8 and pyflakes cleanupsGuido Günther
2012-07-28GitRepository: raise GitRepositoryError on git errorsGuido Günther
Raise GitRepositoryError in cases where CommandExecFailed (from GitCommand) was previously silently passed forward. Heavily based on a patch by Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-02Make exception syntax consistentGuido Günther
2012-04-18Refactor gbp-pq as preparation for rpm supportMarkus Lehtonen
Separate some functions of gbp-pq into a basemodule, intended to be re-used by the upcoming rpm variant of the tool. Also, introduces a new python subpackage gbp.scripts.common to be used for the re-usable parts of the scripts in the refactoring work.
2012-02-20gbp-pq: refactor args of write_patch()Markus Lehtonen
Allows defining the formerly hardcoded patch_dir. This makes write_patch() re-usable in the upcoming RPM-tools. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-02-18Merge tag 'debian/0.6.0_git20120218' into experimentalGuido Günther
Debian release 0.6.0~git20120218
2012-02-18gbp-pq: Properly print patch nameGuido Günther
when guessing authorship information
2012-02-13Refactor config.py as preparation for rpm support.Markus Lehtonen
Split GbpOptionParser in to a common base class and a Debian specific subclass, as a preparation for upcoming RPM support. This allows having different default values (and help texts) for common options between different package types, and, clearer separation of package type specific options. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-01-23gbp-pq: don't crash in get_maintainer_from_control()Markus Lehtonen
even if debian/control is missing.
2011-12-27GitRepository: Add num option to git_commitsGuido Günther
to limit number of returned commits and fix path option to also accept a list of paths instead of a string.
2011-12-26gbp-pq: add "switch" actionGuido Günther
to quickly switch between patch-queue and base branch.
2011-12-26Rename gbp.pq to gbp.patch_seriesGuido Günther
since that's what it currently handles.
2011-12-26pq.Patch: move support for parsing patch headers into Patch classGuido Günther
and add tests.
2011-12-26pq: rename PatchQueue to PatchSeriesGuido Günther
since this models a quilt patch series
2011-12-18scripts/pq: handle patches without filename extensionGuido Günther
Don't fail if patches don't have a proper patch header and filename extensions (like in the heimdal package)
2011-12-18scripts/pq: Move patch name handling to separate functionGuido Günther
and add tests
2011-12-16pq: add --force option to fore recreation of pq branchGuido Günther
so one doesn't have to drop the old one first.
2011-11-21gbp-pq: Instead of looking for the signature don't let git generate itGuido Günther
Thanks: Robert Luberda
2011-11-04gbp-pq: don't claim we're uptodateGuido Günther
if 'rebase' is invoked from the pq branch.
2011-11-01Get rid of the symlinkGuido Günther
by moving the commands to gbp/scripts/