From 42a7d91ad4bc30c31b5467ce9ec83b7390bd2329 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Wed, 4 Feb 2015 13:10:07 +0000 Subject: [PATCH] bitbake: toastergui: set column heading to 'Revision' Replace the column heading 'Branch, tag or commit' with 'Revision'. This also fixes 7023. [YOCTO #7023] (Bitbake rev: 102144f8e5069f76e7de8db052c3c4531609771f) Signed-off-by: Belen Barros Pena Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../lib/toaster/toastergui/templates/layerdetails.html | 5 ++++- bitbake/lib/toaster/toastergui/views.py | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 4ffd07152c..6705215aae 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -142,7 +142,10 @@ -
Brach, tag or commit
+
+ + Revision +
{{layerversion.commit}}
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 4b770ff5db..9567e626be 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -2574,9 +2574,9 @@ if toastermain.settings.MANAGED: 'hidden': 1, 'qhelp': "The layer directory within the Git repository", }, - { 'name': 'Branch, tag o commit', + { 'name': 'Revision', 'clclass': 'branch', - 'qhelp': "The Git branch of the layer. For the layers from the OpenEmbedded source, the branch matches the Yocto Project version you selected for this project", + 'qhelp': "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project", }, { 'name': 'Dependencies', 'clclass': 'dependencies', @@ -2740,8 +2740,9 @@ if toastermain.settings.MANAGED: 'options': map(lambda x: ("Targets provided by " + x.name + " layers", 'layer_source__pk:' + str(x.id), queryset_with_search.filter(layer_source__pk = x.id).count() ), LayerSource.objects.all()), } }, - { 'name': 'Branch, tag or commit', + { 'name': 'Revision', 'clclass': 'branch', + 'qhelp': "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project.", 'hidden': 1, }, ] @@ -2827,8 +2828,9 @@ if toastermain.settings.MANAGED: 'options': map(lambda x: (x.name, 'layer_source__pk:' + str(x.id), queryset_with_search.filter(layer_source__pk = x.id).count() ), LayerSource.objects.all()), } }, - { 'name': 'Branch, tag or commit', + { 'name': 'Revision', 'clclass': 'branch', + 'qhelp' : "The Git branch, tag or commit. For the layers from the OpenEmbedded layer source, the revision is always the branch compatible with the Yocto Project version you selected for this project", 'hidden': 1, }, { 'name': 'Select',