summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-08-15 18:04:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-16 11:44:17 +0100
commit1e8e24358a3b083e2dfad5ff183011545f406823 (patch)
tree0474e7789ce02490e205a56fc3e929cde95c4a17 /meta/classes/buildhistory.bbclass
parent742266d66023a6f6fe47396dcaf5bc9ee7e65f80 (diff)
downloadpoky-1e8e24358a3b083e2dfad5ff183011545f406823.tar.gz
classes/buildhistory: tag last 3 build revisions
This makes it easier to obtain the difference from the last three builds particularly where a single build might account for more than one commit in the buildhistory git repository (e.g. if package and image changes occurred). (From OE-Core rev: 9512f3787295d662678c2943da31197c8df39e99) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 6fb1ba646d..e3f92018f2 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -518,6 +518,10 @@ END
518 # Initialise the repo if necessary 518 # Initialise the repo if necessary
519 if [ ! -d .git ] ; then 519 if [ ! -d .git ] ; then
520 git init -q 520 git init -q
521 else
522 git tag -f build-minus-3 build-minus-2 > /dev/null 2>&1 || true
523 git tag -f build-minus-2 build-minus-1 > /dev/null 2>&1 || true
524 git tag -f build-minus-1 > /dev/null 2>&1 || true
521 fi 525 fi
522 # Check if there are new/changed files to commit (other than metadata-revs) 526 # Check if there are new/changed files to commit (other than metadata-revs)
523 repostatus=`git status --porcelain | grep -v " metadata-revs$"` 527 repostatus=`git status --porcelain | grep -v " metadata-revs$"`