mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
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:
committed by
Richard Purdie
parent
bc77ea96ad
commit
f995febd2e
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user