[oe-commits] Paul Eggleton : classes/buildhistory: tag last 3 build revisions

git at git.openembedded.org git at git.openembedded.org
Fri Aug 16 10:34:05 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 9512f3787295d662678c2943da31197c8df39e99
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9512f3787295d662678c2943da31197c8df39e99

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Thu Aug 15 18:04:37 2013 +0100

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

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/buildhistory.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 6fb1ba6..e3f9201 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -518,6 +518,10 @@ END
 		# Initialise the repo if necessary
 		if [ ! -d .git ] ; then
 			git init -q
+		else
+			git tag -f build-minus-3 build-minus-2 > /dev/null 2>&1 || true
+			git tag -f build-minus-2 build-minus-1 > /dev/null 2>&1 || true
+			git tag -f build-minus-1 > /dev/null 2>&1 || true
 		fi
 		# Check if there are new/changed files to commit (other than metadata-revs)
 		repostatus=`git status --porcelain | grep -v " metadata-revs$"`



More information about the Openembedded-commits mailing list