From b7de1eaac9eed559b2d68058f5de67de74a6cb58 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 17 Oct 2013 14:15:15 +0100 Subject: buildhistory-diff: add ability to report version changes Add a -v/--report-ver option to report changes in PKGE/PKGV/PKGR even if the value is the same as the default from PE/PV/PR. Also add a -a/--report-all option to report all changes instead of just the default significant ones. Addresses [YOCTO #5263]. Signed-off-by: Paul Eggleton Signed-off-by: Saul Wold --- scripts/buildhistory-diff | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/buildhistory-diff b/scripts/buildhistory-diff index b82240d763..ad50414bce 100755 --- a/scripts/buildhistory-diff +++ b/scripts/buildhistory-diff @@ -27,6 +27,12 @@ def main(): parser.add_option("-p", "--buildhistory-dir", help = "Specify path to buildhistory directory (defaults to buildhistory/ under cwd)", action="store", dest="buildhistory_dir", default='buildhistory/') + parser.add_option("-v", "--report-version", + help = "Report changes in PKGE/PKGV/PKGR even when the values are still the default (PE/PV/PR)", + action="store_true", dest="report_ver", default=False) + parser.add_option("-a", "--report-all", + help = "Report all changes, not just the default significant ones", + action="store_true", dest="report_all", default=False) options, args = parser.parse_args(sys.argv) @@ -79,7 +85,7 @@ def main(): import gitdb try: - changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev) + changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev, options.report_all, options.report_ver) except gitdb.exc.BadObject as e: if len(args) == 1: sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n") -- cgit 1.2.3-korg