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].

(From OE-Core rev: b7de1eaac9eed559b2d68058f5de67de74a6cb58)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton
2013-10-17 14:15:15 +01:00
committed by Richard Purdie
parent bc77ea96ad
commit f995febd2e
2 changed files with 29 additions and 20 deletions

View File

@@ -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")