diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-04-07 16:57:21 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-11 18:10:17 +0100 |
commit | 1f19d9dfe59d5d627bc7ce0b20bd762e5b304dca (patch) | |
tree | ac4aae13f7c9702b97f22515c6c095785e0d2990 /scripts/buildhistory-diff | |
parent | 9049c09793eddd7e314d4ae9cca73e1274dcf6f8 (diff) | |
download | poky-1f19d9dfe59d5d627bc7ce0b20bd762e5b304dca.tar.gz |
buildhistory-diff: add option to compare actual signature differences
Use the code underpinning bitbake-diffsigs to add an option to
buildhistory-diff to determine and display the differences between the
actual signature inputs, with a twist - we collapse identical
changes across different tasks, showing only the most recent task to
have that difference, meaning that there's less noise to wade through
when you just want to know what changed in order to cause some
rebuilding you're seeing.
(From OE-Core rev: 86cb4b01f2020553902554e512c02147eb4e0f51)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/buildhistory-diff')
-rwxr-xr-x | scripts/buildhistory-diff | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index e8e3e11649..dd9745e80c 100755 --- a/scripts/buildhistory-diff +++ b/scripts/buildhistory-diff | |||
@@ -34,8 +34,11 @@ def main(): | |||
34 | help = "Report all changes, not just the default significant ones", | 34 | help = "Report all changes, not just the default significant ones", |
35 | action="store_true", dest="report_all", default=False) | 35 | action="store_true", dest="report_all", default=False) |
36 | parser.add_option("-s", "--signatures", | 36 | parser.add_option("-s", "--signatures", |
37 | help = "Report on signature differences instead of output", | 37 | help = "Report list of signatures differing instead of output", |
38 | action="store_true", dest="sigs", default=False) | 38 | action="store_true", dest="sigs", default=False) |
39 | parser.add_option("-S", "--signatures-with-diff", | ||
40 | help = "Report on actual signature differences instead of output (requires signature data to have been generated, either by running the actual tasks or using bitbake -S)", | ||
41 | action="store_true", dest="sigsdiff", default=False) | ||
39 | 42 | ||
40 | options, args = parser.parse_args(sys.argv) | 43 | options, args = parser.parse_args(sys.argv) |
41 | 44 | ||
@@ -89,7 +92,7 @@ def main(): | |||
89 | 92 | ||
90 | import gitdb | 93 | import gitdb |
91 | try: | 94 | try: |
92 | changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev, options.report_all, options.report_ver, options.sigs) | 95 | changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev, options.report_all, options.report_ver, options.sigs, options.sigsdiff) |
93 | except gitdb.exc.BadObject as e: | 96 | except gitdb.exc.BadObject as e: |
94 | if len(args) == 1: | 97 | if len(args) == 1: |
95 | sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n") | 98 | sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n") |