Print the calculated tree for now

This commit is contained in:
Stephan Kulow 2022-10-27 13:34:04 +02:00
parent 7a9e9ce334
commit e636f3ed9d
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,6 @@ class Importer:
tprj = root.get("project") or project
tpkg = root.get("package") or package
dbrev.links_to(db, tprj, tpkg)
db.conn.commit()
def find_linked_revs(self, db):
with db.cursor() as cur:
@ -304,7 +303,7 @@ class Importer:
self.obs.request(number).import_into_db(db)
db.conn.commit()
# TreeBuilder(db).build(self.package)
TreeBuilder(db).build(self.package).print()
def import_all_revisions(self, gc):
# Fetch all the requests and sort them. Ideally we should

View File

@ -113,7 +113,8 @@ class TreeBuilder:
break
if not ended_without_merge:
factory_node.merged = None
last_merge.parent = None
if last_merge:
last_merge.parent = None
else:
last_merge = factory_node.merged
factory_node = factory_node.parent