summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-10-17 14:15:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-26 15:59:13 +0100
commitf995febd2ebd43774cb1cc5917f3f3c46a744519 (patch)
treea37c415ca70079414f7c2aef271175b2880d68ff /scripts
parentbc77ea96adef9977a39704e2bf5caddde0225d63 (diff)
downloadpoky-f995febd2ebd43774cb1cc5917f3f3c46a744519.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildhistory-diff8
1 files changed, 7 insertions, 1 deletions
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():
27 parser.add_option("-p", "--buildhistory-dir", 27 parser.add_option("-p", "--buildhistory-dir",
28 help = "Specify path to buildhistory directory (defaults to buildhistory/ under cwd)", 28 help = "Specify path to buildhistory directory (defaults to buildhistory/ under cwd)",
29 action="store", dest="buildhistory_dir", default='buildhistory/') 29 action="store", dest="buildhistory_dir", default='buildhistory/')
30 parser.add_option("-v", "--report-version",
31 help = "Report changes in PKGE/PKGV/PKGR even when the values are still the default (PE/PV/PR)",
32 action="store_true", dest="report_ver", default=False)
33 parser.add_option("-a", "--report-all",
34 help = "Report all changes, not just the default significant ones",
35 action="store_true", dest="report_all", default=False)
30 36
31 options, args = parser.parse_args(sys.argv) 37 options, args = parser.parse_args(sys.argv)
32 38
@@ -79,7 +85,7 @@ def main():
79 85
80 import gitdb 86 import gitdb
81 try: 87 try:
82 changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev) 88 changes = oe.buildhistory_analysis.process_changes(options.buildhistory_dir, fromrev, torev, options.report_all, options.report_ver)
83 except gitdb.exc.BadObject as e: 89 except gitdb.exc.BadObject as e:
84 if len(args) == 1: 90 if len(args) == 1:
85 sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n") 91 sys.stderr.write("Unable to find previous build revision in buildhistory repository\n\n")