'arch' : '',
'interactive' : 'True',
'color' : 'auto',
+ 'color-scheme' : '',
'customizations' : '',
'spawn-editor' : 'release',
'patch-numbers' : 'True',
"Run command interactively, default is '%(interactive)s'",
'color':
"Whether to use colored output, default is '%(color)s'",
+ 'color-scheme':
+ ("Colors to use in output (when color is enabled), format "
+ "is '<debug>:<info>:<warning>:<error>', e.g. "
+ "'cyan:34::'. Numerical values and color names are "
+ "accepted, empty fields indicate using the default."),
'spawn-editor':
("Whether to spawn an editor after adding the "
"changelog entry, default is '%(spawn-editor)s'"),
parser.add_option("--git-verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_config_file_option(option_name="notify", dest="notify", type='tristate')
tag_group.add_option("--git-tag", action="store_true", dest="tag", default=False,
help="create a tag after a successful build")
export_group.add_boolean_config_file_option(option_name="overlay", dest="overlay")
options, args = parser.parse_args(args)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
if options.retag:
if not options.tag and not options.tag_only:
gbp.log.err("'--%sretag' needs either '--%stag' or '--%stag-only'" % (prefix, prefix, prefix))
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
return (options, args)
parser.add_config_file_option(option_name="color",
dest="color",
type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_option("--remote-name",
dest="name",
default="origin",
print >>sys.stderr, "%s" % e
return 1
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
try:
repo = DebianGitRepository(os.path.curdir)
except GitRepositoryError:
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
range_group.add_option("-s", "--since", dest="since", help="commit to start from (e.g. HEAD^^^, debian/0.4.3)")
range_group.add_option("-a", "--auto", action="store_true", dest="auto", default=False,
help="autocomplete changelog from last snapshot or tag")
help=help_msg)
(options, args) = parser.parse_args(argv[1:])
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
dch_options = process_options(options, parser)
editor_cmd = process_editor_option(options)
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
parser.add_option("--download", action="store_true", dest="download", default=False,
help="download source package")
branch_group.add_config_file_option(option_name="debian-branch",
(options, args) = parser.parse_args(argv[1:])
gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
return options, args
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
# Accepted for compatibility
parser.add_option("--no-dch", dest='no_dch', action="store_true",
default=False, help="use uscan(1) to download the new tarball.")
(options, args) = parser.parse_args(argv[1:])
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
if options.no_dch:
gbp.log.warn("'--no-dch' passed. This is now the default, please remove this option.")
parser.add_option("--force", dest="force", action="store_true", default=False,
help="in case of import even import if the branch already exists")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
if len(args) < 2:
gbp.log.err("No action given.")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
try:
repo = DebianGitRepository(os.path.curdir)