Skip to content
Snippets Groups Projects
Commit 6a87e3f4 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

Do not list the descendant branches for the tags in the YAML


Since we already list all the tag contained in each branch, including
the symmetrical list of descendant branches for each tag in the YAML is
wasting bytes with duplicated information.

We still use the list of descendant branches internally to compute which
tags are contained in each branch.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 0139d34a
No related branches found
No related tags found
1 merge request!82Make the YAML data leaner
......@@ -143,6 +143,8 @@ class GitTag:
@classmethod
def to_yaml(cls, dumper, data):
d = dataclasses.asdict(data)
# already represented by the list of tags on each branch
del d["descendant_branches"]
return dumper.represent_dict(d)
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment