From 69d8aaf4718aec14de0fea7f8727eed0f4a62816 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 22 Mar 2023 22:52:14 -0700 Subject: [PATCH] dag: display HEAD and local branches before remote branches Retain the sort order when creating the Commit objects so that the DAG can display the decorations in the same order. Signed-off-by: David Aguilar --- cola/models/dag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cola/models/dag.py b/cola/models/dag.py index fd419105..f2339642 100644 --- a/cola/models/dag.py +++ b/cola/models/dag.py @@ -101,7 +101,7 @@ class Commit(object): self.summary = None self.parents = [] self.children = [] - self.tags = set() + self.tags = [] self.branches = [] self.email = None self.author = None @@ -190,10 +190,10 @@ class Commit(object): head_arrow = 'HEAD -> ' if tag.startswith(head_arrow): - self.tags.add('HEAD') + self.tags.append('HEAD') self.add_label(tag[len(head_arrow) :]) else: - self.tags.add(tag) + self.tags.append(tag) def __str__(self): return self.oid -- 2.11.4.GIT