aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/config.py
Commit message (Collapse)AuthorAge
* Fix comitter vs committer typosGuido Günther2014-05-16
| | | | | Thanks: Sandro Tosi Closes: #748339
* config: add decorator to add_option_* functionsGuido Günther2014-04-03
| | | | | This allows us to build an internal list of valid options and print these.
* Add minimal 'config' commandGuido Günther2014-04-01
| | | | | | This only allows to print single config values so far. Closes: #733470
* Test option parser fallbacks more thoroughlyGuido Günther2014-04-01
| | | | | | revealing another bug where we overwrote parsed values with defaults Closes: #733759
* Use a much simpler version to fix the command name in --helpGuido Günther2014-03-29
| | | | | | mostly reverting e1780f0. Closes: #742907
* Fix command outputGuido Günther2014-03-27
| | | | | | | | | | | | | The first line lacked the subcommand like: $ gbp pull --help Usage: gbp [options] - safely update a repository from remote instead of $ gbp pull --help Usage: gbp pull [options] - safely update a repository from remote ^^^^
* config: Don't pull in config defaults twiceGuido Günther2014-02-19
| | | | | | This would otherwise overwrite values set in the legacy config sections. Closes: #733759
* config: Don't pull in config defaults twiceGuido Günther2014-02-18
| | | | | | This would otherwise overwrite values set in the legacy config sections. Closes: #733759
* Change the default of cleaner to /bin/trueGuido Günther2014-01-05
| | | | | | | | | Running a clean command within version control by default nowadays causes more trouble than it helps. It's unnecessary with pbuilder/cowbuilder/sbuild and with export-dir. So change the default from 'debuild clean' to a noop ('/bin/true'). Closes: #670624
* Make parsing config file sections symmetricGuido Günther2014-01-05
| | | | | | | | | | | Always read the legacy command's config file section prior to the subcommand's config file section. Until now 'gbp <subcommand>' would read '[subcommand]' as well as '[gbp-<subcommand>]' sections while 'gbp-<subcommand>' would only read '[gbp-<subcommand>]' sections. Closes: #733759
* config: restore mangled env in doctestsMarkus Lehtonen2013-09-04
| | | | | | | Otherwise the mangled GBP_CONF_FILES affects also other doctests when run with python-nose. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* config: Don't fill in the parser with all defaultsGuido Günther2013-06-26
| | | | | | | | | | | | There's no need to fill the parser with all the built in defaults since we can simply copy them to the config from the class dict. This allows us to first set the values from the old {git,gbp}-* commands and then only overwrite changed values from the newer "gbp <command>" versions. Otherwise we'd overwite all old style config with the new style one. This also fixes the problem where the default section wouldn't be read at all if the command doesn't even have an empty section in any gbp.conf file.
* Consistently call gbp the supercommandGuido Günther2013-06-26
| | | | and robustify against invalid modules names.
* GbpOptionParser: Make sure we parse the old config sectionsGuido Günther2013-06-19
| | | | | For backward compatibility between {gbp,git}-<subcommand> and "gbp <subcommand>" make sure we parse the former sections if using the later.
* GbpOptionParser: Make sure we access the GbpOptionParser*'s default dictGuido Günther2013-06-19
| | | | | and not the one from the OptionParser. The instance's default dict this gets reset to empty when invoking OptionParser.__init__.
* buildpackage: implement --[no-]hooks optionMarkus Lehtonen2013-04-26
| | | | | | | For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Purging of the build dir should be configurable via a config fileGuido Günther2013-03-22
| | | | | | | so introdice --git[-no]-purge which is consistent with the other boolean options and deprecate --git-dont-purge. Closes: #702200
* New configuration option for setting the output color schemeMarkus Lehtonen2012-11-25
| | | | | | | 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>
* Allow to remove the orig tarball symlinkGuido Günther2012-11-08
| | | | | | that's used make pristine-tar see the correct orig tarball name. Closes: #692401
* Make exception syntax consistentGuido Günther2012-07-02
|
* gbp.conf: Make config option printing more consistentGuido Günther2012-06-08
|
* import_dsc: add --allow-unauthenticatedGuido Günther2012-05-24
| | | | Closes: #670623
* Config help fixJérémy Lal2012-05-12
| | | | Signed-off-by: Guido Günther <agx@sigxcpu.org>
* Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman2012-04-19
| | | | | | Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
* gbp-create-remote-repo: add --remote-configGuido Günther2012-03-21
| | | | | This specifies an additional config file section that can be used to preconfigure different remote locations.
* gbp.config: add list of config file sections to constructorGuido Günther2012-03-21
| | | | | | | This makes it possible to parse additional mandatory sections from config files to prefill defaults. Git-Dch: Ignore
* gbp.confing: add docstringGuido Günther2012-03-21
| | | | Git-Dch: Ignore
* gbp create-remote-repo: allow to pass template directoryGuido Günther2012-03-21
| | | | to git init so it's possible to set up remote hooks.
* GbpOptionParser: allow to modify list of parsed conf filesGuido Günther2012-03-08
| | | | by setting the GBP_CONF_FILES environment variable.
* config.py: Add default value print out to all optionsGuido Günther2012-02-26
|
* Rename GbpOptionParserCommon common to GbpOptionParserGuido Günther2012-02-13
|
* Refactor config.py as preparation for rpm support.Markus Lehtonen2012-02-13
| | | | | | | | | | | 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>
* buildpackage: Add pristine-tar-commit optionGuido Günther2012-01-22
| | | | | | This option allows to auto commit a generated tarball to the pristine-tar branch to simplify building non-dfsg clean packages and to make it easier to track uptream git.
* Don't assume gzip compression of the orig tarballGuido Günther2012-01-18
|
* buildpackage: Allow to pass pbuilder optionsGuido Günther2012-01-11
| | | | via commandline or gbp.conf
* Allow to specify the upstream tree via --upstream-treeGuido Günther2012-01-10
| | | | without the indirection to --upstream-branch.
* Add --[no-]-pbuilder-autoconfGuido Günther2011-12-26
| | | | to pass GIT_PBUILDER_AUTOCONF=no to git-pbuilder.
* Support postexport hooksGuido Günther2011-11-22
| | | | | | Heavily based on a patch by Jan Čapek Closes: #640982
* Move gbp/version.py generation into setup.pyGuido Günther2011-11-07
| | | | This allows us to build on non Debian systems with setup.py only.
* Make sure self.config['filter'] is a listGuido Günther2011-10-16
| | | | The python2.7 OptionParser chokes otherwise.
* gbp-pq: add --time-mache=N optionGuido Günther2011-07-30
| | | | to find the last commit the patch-queue applies to.
* Add copyright headers to all non autogenerated filesGuido Günther2011-07-29
| | | | Git-Dch: Ignore
* Fix some epydoc warningsGuido Günther2011-07-29
| | | | Git-Dch: Ignore
* git-buildpackage: Add upstream-tree optionRicardo Salveti de Araujo2011-07-23
| | | | | | | | | to specify where the upstream tarball should be created from. The default is to create the upstream tarball from the exact tag and fail otherwise. To create the upstream tarball from the tip of the upstream branch use 'branch'. Based on a patch by Ricardo Salveti de Araujo
* gbp-create-remote-repo: switch to git.debian.orgGuido Günther2011-07-06
| | | | | Thanks: Ritesh Raj Sarraf Closes: #632897
* Add support for qemubuilderGuido Günther2011-05-20
| | | | Closes: #601298
* config: minor option parsing cleanupGuido Günther2011-04-17
| | | | Git-Dch: Ignore
* Disable submodule processing by default.Guido Günther2011-04-11
|
* Make submodule support conditionalGuido Günther2011-04-06
|
* Move no_upstream_branch message into gbp.configGuido Günther2011-02-11
| | | | Git-Dch: Ignore