diff options
Diffstat (limited to 'import-layers/yocto-poky/scripts/buildhistory-diff')
-rwxr-xr-x | import-layers/yocto-poky/scripts/buildhistory-diff | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/import-layers/yocto-poky/scripts/buildhistory-diff b/import-layers/yocto-poky/scripts/buildhistory-diff index e79cb7ac8d..70805b0678 100755 --- a/import-layers/yocto-poky/scripts/buildhistory-diff +++ b/import-layers/yocto-poky/scripts/buildhistory-diff @@ -38,7 +38,7 @@ def get_args_parser(): parser.add_argument('-a', '--report-all', action='store_true', dest='report_all', - default='False', + default=False, help="Report all changes, not just the default significant ones") parser.add_argument('-s', '---signatures', action='store_true', @@ -53,6 +53,10 @@ def get_args_parser(): parser.add_argument('-e', '--exclude-path', action='append', help="Exclude path from the output") + parser.add_argument('-c', '--colour', + choices=('yes', 'no', 'auto'), + default="auto", + help="Whether to colourise (defaults to auto)") parser.add_argument('revisions', default = ['build-minus-1', 'HEAD'], nargs='*', @@ -107,10 +111,11 @@ def main(): elif len(args.revisions) == 2: fromrev, torev = args.revisions - from oe.buildhistory_analysis import process_changes - + from oe.buildhistory_analysis import init_colours, process_changes import gitdb + init_colours({"yes": True, "no": False, "auto": sys.stdout.isatty()}[args.colour]) + try: changes = process_changes(args.buildhistory_dir, fromrev, torev, args.report_all, args.report_ver, args.sigs, |