forked from importers/git-importer
Print the calculated tree for now
This commit is contained in:
parent
7a9e9ce334
commit
e636f3ed9d
@ -146,7 +146,6 @@ class Importer:
|
|||||||
tprj = root.get("project") or project
|
tprj = root.get("project") or project
|
||||||
tpkg = root.get("package") or package
|
tpkg = root.get("package") or package
|
||||||
dbrev.links_to(db, tprj, tpkg)
|
dbrev.links_to(db, tprj, tpkg)
|
||||||
db.conn.commit()
|
|
||||||
|
|
||||||
def find_linked_revs(self, db):
|
def find_linked_revs(self, db):
|
||||||
with db.cursor() as cur:
|
with db.cursor() as cur:
|
||||||
@ -304,7 +303,7 @@ class Importer:
|
|||||||
self.obs.request(number).import_into_db(db)
|
self.obs.request(number).import_into_db(db)
|
||||||
|
|
||||||
db.conn.commit()
|
db.conn.commit()
|
||||||
# TreeBuilder(db).build(self.package)
|
TreeBuilder(db).build(self.package).print()
|
||||||
|
|
||||||
def import_all_revisions(self, gc):
|
def import_all_revisions(self, gc):
|
||||||
# Fetch all the requests and sort them. Ideally we should
|
# Fetch all the requests and sort them. Ideally we should
|
||||||
|
@ -113,7 +113,8 @@ class TreeBuilder:
|
|||||||
break
|
break
|
||||||
if not ended_without_merge:
|
if not ended_without_merge:
|
||||||
factory_node.merged = None
|
factory_node.merged = None
|
||||||
last_merge.parent = None
|
if last_merge:
|
||||||
|
last_merge.parent = None
|
||||||
else:
|
else:
|
||||||
last_merge = factory_node.merged
|
last_merge = factory_node.merged
|
||||||
factory_node = factory_node.parent
|
factory_node = factory_node.parent
|
||||||
|
Loading…
Reference in New Issue
Block a user