[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5489/8267] scripts/oe-build-perf-report: better guessing of args



commit 728c668473b11faba90465efe2e960463a1f0bb8
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date:   Mon Apr 3 18:58:33 2017 +0300

    scripts/oe-build-perf-report: better guessing of args
    
    When getting info from the latest commit, don't search all refs but only
    branches. We don't get correct data from refs/tags/* or refs/notest/*,
    for example.
    
    (From OE-Core rev: f84d0bd7deb4c19fdb1e821b3a50e8c8f54a731b)
    
    Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/oe-build-perf-report |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 3976613..ca9cf1d 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -380,7 +380,7 @@ def auto_args(repo, args):
     """Guess arguments, if not defined by the user"""
     # Get the latest commit in the repo
     log.debug("Guessing arguments from the latest commit")
-    msg = repo.run_cmd(['log', '-1', '--all', '--format=%b'])
+    msg = repo.run_cmd(['log', '-1', '--branches', '--format=%b'])
     for line in msg.splitlines():
         split = line.split(':', 1)
         if len(split) != 2:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]