mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
yocto-bsp: allow branch display filtering
Add a "branches_base" property that can be used to allow only matching branches to be returned from all_branches(). (From meta-yocto rev: c3481e22fc4690ff5e449f9c16c2453fa964205d) Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0f34dd65f2
commit
7be26836ca
@@ -463,6 +463,11 @@ def gen_choices_defer(input_line, context, checklist = False):
|
||||
except KeyError:
|
||||
nameappend = ""
|
||||
|
||||
try:
|
||||
branches_base = input_line.props["branches_base"]
|
||||
except KeyError:
|
||||
branches_base = ""
|
||||
|
||||
filename = input_line.props["filename"]
|
||||
|
||||
closetag_start = filename.find(CLOSE_TAG)
|
||||
@@ -478,6 +483,8 @@ def gen_choices_defer(input_line, context, checklist = False):
|
||||
captured_context["filename"] = filename
|
||||
context["nameappend"] = nameappend
|
||||
captured_context["nameappend"] = nameappend
|
||||
context["branches_base"] = branches_base
|
||||
captured_context["branches_base"] = branches_base
|
||||
|
||||
deferred_choice = (input_line, captured_context, checklist)
|
||||
key = name + "_" + filename + "_" + nameappend
|
||||
|
||||
Reference in New Issue
Block a user