Yocto 2.5
Move OpenBMC to Yocto 2.5(sumo)
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I5c5ad6904a16e14c1c397f0baf10c9d465594a78
diff --git a/import-layers/yocto-poky/scripts/buildhistory-diff b/import-layers/yocto-poky/scripts/buildhistory-diff
index e79cb7a..70805b0 100755
--- a/import-layers/yocto-poky/scripts/buildhistory-diff
+++ b/import-layers/yocto-poky/scripts/buildhistory-diff
@@ -38,7 +38,7 @@
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 @@
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 @@
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,