Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BB118E00815; Tue, 10 Feb 2015 08:45:02 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.175 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5FDBEE00717 for ; Tue, 10 Feb 2015 08:44:59 -0800 (PST) Received: by mail-wi0-f175.google.com with SMTP id r20so10613108wiv.2 for ; Tue, 10 Feb 2015 08:44:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B3v2UbSZf99ZoUvpt8xcj4lISqBKC0sJsmWH9m859cA=; b=dBHXVHdQArsEnt9zowQitmE970OBXHkIKdOwi6/FWh3r7cwufDRisq6j5VlgQIjiYN aE4zWgQH8+DYayldz8E5q+Ww15KsuSZTBT+BCiuMvH1hH5Y4soSDp2uvz9rrsdg72MVm C+vpeHh2xXsfQJXpsBPslxi+AL1FB7b7m+qw9TKrwOwsg3TramMJ4RnrGllBmDHnsARC tt1e4uKOsIRXdXml575vEkflGP1VW2lv30HW18kwbJtRvgwhvCka94u6E6B20Hy+u2Aq rZtx3U2IVV3iG3p7RPNX3TMJQ9/UGcetpHzoDMtRN1Yre64yjnzJ+5KTV3DrpILtUnwy 7p7A== X-Gm-Message-State: ALoCoQlwUlG+RhvPwBJUoKKNsfUb9oSsOOSLrVcdSyHnVar2zfNQT63o+IPl/AI2uRN9VBHZ1QST X-Received: by 10.194.81.1 with SMTP id v1mr52446924wjx.50.1423586688491; Tue, 10 Feb 2015 08:44:48 -0800 (PST) Received: from draco.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id hi6sm21472356wjc.34.2015.02.10.08.44.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Feb 2015 08:44:47 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 10 Feb 2015 16:44:35 +0000 Message-Id: <1423586675-21515-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [review-request][PATCH] bitbake: toaster: layerdetails Use new vcs reference api X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 16:45:02 -0000 Use the new layer_version api so that we return the vcs reference whether that be the commit hash, brash name or the upstream branch to which the layer is associated with. [YOCTO #7192] Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 4ffd071..79679c2 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -5,7 +5,7 @@ {% block localbreadcrumb %}
  • All layers
  • - {{layerversion.layer.name}} ({{layerversion.commit|truncatechars:13}}) + {{layerversion.layer.name}} ({{layerversion.get_vcs_reference|truncatechars:13}})
  • {% endblock %} {% block projectinfomain %} @@ -29,7 +29,7 @@ layerVersion : { name : "{{layerversion.layer.name}}", id : {{layerversion.id}}, - commit: "{{layerversion.commit}}", + commit: "{{layerversion.get_vcs_reference}}", inCurrentPrj : {{layer_in_project}}, url : "{% url 'layerdetails' layerversion.id %}", sourceId: {{layerversion.layer_source_id}}, @@ -66,7 +66,7 @@ {% include "layers_dep_modal.html" %}
    @@ -144,10 +144,10 @@
    Brach, tag or commit
    - {{layerversion.commit}} + {{layerversion.get_vcs_reference}}
    - +
    @@ -163,8 +163,7 @@ {% for ld in layerversion.dependencies.all %}
  • - - {{ld.depends_on.layer.name}} + {{ld.depends_on.layer.name}}
  • -- 2.1.0