Add actual tree and a test case for zsh #7

Merged
Ghost merged 2 commits from add_tree into main 2022-10-27 14:04:53 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit e636f3ed9d - Show all commits

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()
Ghost marked this conversation as resolved Outdated

remove?

remove?
Outdated
Review

I will readd it with a print.

I will readd it with a 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