summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-04-01 00:06:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-02 04:31:47 +0100
commit2592a11bde92bb39ca7d2273758e25b73ab5f54d (patch)
tree1e63bd75040a3d467a49fc9e55032f9becff3b6a /meta
parentbcd3db5b027d60f8ffbd33e3ed0e4c35ae41cfab (diff)
downloadpoky-2592a11bde92bb39ca7d2273758e25b73ab5f54d.tar.gz
buildhistory: make seperate commits for every changed top level entry in the buildhistory dir
This seperates out image changes from package changes making the image diffs a lot easier to read. (From OE-Core rev: fba198ac7efe476a25c5761878ef2fcee97bf9f1) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 2224340728..8d5b0963f8 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -401,7 +401,10 @@ buildhistory_commit() {
401 if [ "$repostatus" != "" ] ; then 401 if [ "$repostatus" != "" ] ; then
402 git add ${BUILDHISTORY_DIR}/* 402 git add ${BUILDHISTORY_DIR}/*
403 HOSTNAME=`hostname 2>/dev/null || echo unknown` 403 HOSTNAME=`hostname 2>/dev/null || echo unknown`
404 git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null 404 # porcelain output looks like "?? packages/foo/bar"
405 for entry in `echo $repostatus | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do
406 git commit ${BUILDHISTORY_DIR}/$entry -m "$entry: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
407 done
405 if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then 408 if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
406 git push -q ${BUILDHISTORY_PUSH_REPO} 409 git push -q ${BUILDHISTORY_PUSH_REPO}
407 fi 410 fi