diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 16:12:18 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-23 11:43:36 +0100 |
commit | 86393230e0ce33bf7d6d69d3019113e704081d30 (patch) | |
tree | 2daf9747cded9bd1779f7a9f17ffc0500555ce46 /scripts | |
parent | f60520d97f53dafe783f61eb58fe249798a1e1be (diff) | |
download | openembedded-core-86393230e0ce33bf7d6d69d3019113e704081d30.tar.gz openembedded-core-86393230e0ce33bf7d6d69d3019113e704081d30.tar.bz2 openembedded-core-86393230e0ce33bf7d6d69d3019113e704081d30.zip |
buildhistory-diff: exclude paths from the output
Implemented -e/--exclude-path command line option to
exclude paths from buildhistory-diff output.
[YOCTO #11459]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/buildhistory-diff | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index dd9745e80c..1b2e0d1f4e 100755 --- a/scripts/buildhistory-diff +++ b/scripts/buildhistory-diff @@ -39,6 +39,8 @@ def main(): parser.add_option("-S", "--signatures-with-diff", 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)", action="store_true", dest="sigsdiff", default=False) + parser.add_option("-e", "--exclude-path", action="append", + help = "exclude path from the output") options, args = parser.parse_args(sys.argv) @@ -75,7 +77,7 @@ def main(): sys.stderr.write("Unable to find bitbake by searching parent directory of this script or PATH\n") sys.exit(1) - import oe.buildhistory_analysis + from oe.buildhistory_analysis import process_changes fromrev = 'build-minus-1' torev = 'HEAD' @@ -92,7 +94,9 @@ def main(): import gitdb try: - changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev, options.report_all, options.report_ver, options.sigs, options.sigsdiff) + changes = process_changes(options.buildhistory_dir, fromrev, torev, + options.report_all, options.report_ver, options.sigs, + options.sigsdiff, options.exclude_path) except gitdb.exc.BadObject as e: if len(args) == 1: sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n") @@ -102,7 +106,9 @@ def main(): sys.exit(1) for chg in changes: - print('%s' % chg) + out = str(chg) + if out: + print(out) sys.exit(0) |