summaryrefslogtreecommitdiff
path: root/gbp/config.py
AgeCommit message (Collapse)Author
2014-05-16Fix comitter vs committer typosGuido Günther
Thanks: Sandro Tosi Closes: #748339
2014-04-03config: add decorator to add_option_* functionsGuido Günther
This allows us to build an internal list of valid options and print these.
2014-04-01Add minimal 'config' commandGuido Günther
This only allows to print single config values so far. Closes: #733470
2014-04-01Test option parser fallbacks more thoroughlyGuido Günther
revealing another bug where we overwrote parsed values with defaults Closes: #733759
2014-03-29Use a much simpler version to fix the command name in --helpGuido Günther
mostly reverting e1780f0. Closes: #742907
2014-03-27Fix command outputGuido Günther
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 ^^^^
2014-02-19config: Don't pull in config defaults twiceGuido Günther
This would otherwise overwrite values set in the legacy config sections. Closes: #733759
2014-02-18config: Don't pull in config defaults twiceGuido Günther
This would otherwise overwrite values set in the legacy config sections. Closes: #733759
2014-01-05Change the default of cleaner to /bin/trueGuido Günther
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
2014-01-05Make parsing config file sections symmetricGuido Günther
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
2013-09-04config: restore mangled env in doctestsMarkus Lehtonen
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>
2013-06-26config: Don't fill in the parser with all defaultsGuido Günther
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.
2013-06-26Consistently call gbp the supercommandGuido Günther
and robustify against invalid modules names.
2013-06-19GbpOptionParser: Make sure we parse the old config sectionsGuido Günther
For backward compatibility between {gbp,git}-<subcommand> and "gbp <subcommand>" make sure we parse the former sections if using the later.
2013-06-19GbpOptionParser: Make sure we access the GbpOptionParser*'s default dictGuido Günther
and not the one from the OptionParser. The instance's default dict this gets reset to empty when invoking OptionParser.__init__.
2013-04-26buildpackage: implement --[no-]hooks optionMarkus Lehtonen
For enabling/disabling all hooks. This option does not affect the builder command, though. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-03-22Purging of the build dir should be configurable via a config fileGuido Günther
so introdice --git[-no]-purge which is consistent with the other boolean options and deprecate --git-dont-purge. Closes: #702200
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-08Allow to remove the orig tarball symlinkGuido Günther
that's used make pristine-tar see the correct orig tarball name. Closes: #692401
2012-07-02Make exception syntax consistentGuido Günther
2012-06-08gbp.conf: Make config option printing more consistentGuido Günther
2012-05-24import_dsc: add --allow-unauthenticatedGuido Günther
Closes: #670623
2012-05-12Config help fixJérémy Lal
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-04-19Bug#669145: [PATCH] Add git-dch --commit and --commit-msg optionsMatthijs Kooijman
Closes: #669145 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-03-21gbp-create-remote-repo: add --remote-configGuido Günther
This specifies an additional config file section that can be used to preconfigure different remote locations.
2012-03-21gbp.config: add list of config file sections to constructorGuido Günther
This makes it possible to parse additional mandatory sections from config files to prefill defaults. Git-Dch: Ignore
2012-03-21gbp.confing: add docstringGuido Günther
Git-Dch: Ignore
2012-03-21gbp create-remote-repo: allow to pass template directoryGuido Günther
to git init so it's possible to set up remote hooks.
2012-03-08GbpOptionParser: allow to modify list of parsed conf filesGuido Günther
by setting the GBP_CONF_FILES environment variable.
2012-02-26config.py: Add default value print out to all optionsGuido Günther
2012-02-13Rename GbpOptionParserCommon common to GbpOptionParserGuido Günther
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-22buildpackage: Add pristine-tar-commit optionGuido Günther
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.
2012-01-18Don't assume gzip compression of the orig tarballGuido Günther
2012-01-11buildpackage: Allow to pass pbuilder optionsGuido Günther
via commandline or gbp.conf
2012-01-10Allow to specify the upstream tree via --upstream-treeGuido Günther
without the indirection to --upstream-branch.
2011-12-26Add --[no-]-pbuilder-autoconfGuido Günther
to pass GIT_PBUILDER_AUTOCONF=no to git-pbuilder.
2011-11-22Support postexport hooksGuido Günther
Heavily based on a patch by Jan Čapek Closes: #640982
2011-11-07Move gbp/version.py generation into setup.pyGuido Günther
This allows us to build on non Debian systems with setup.py only.
2011-10-16Make sure self.config['filter'] is a listGuido Günther
The python2.7 OptionParser chokes otherwise.
2011-07-30gbp-pq: add --time-mache=N optionGuido Günther
to find the last commit the patch-queue applies to.
2011-07-29Add copyright headers to all non autogenerated filesGuido Günther
Git-Dch: Ignore
2011-07-29Fix some epydoc warningsGuido Günther
Git-Dch: Ignore
2011-07-23git-buildpackage: Add upstream-tree optionRicardo Salveti de Araujo
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
2011-07-06gbp-create-remote-repo: switch to git.debian.orgGuido Günther
Thanks: Ritesh Raj Sarraf Closes: #632897
2011-05-20Add support for qemubuilderGuido Günther
Closes: #601298
2011-04-17config: minor option parsing cleanupGuido Günther
Git-Dch: Ignore
2011-04-11Disable submodule processing by default.Guido Günther
2011-04-06Make submodule support conditionalGuido Günther
2011-02-11Move no_upstream_branch message into gbp.configGuido Günther
Git-Dch: Ignore