forked from importers/git-importer
Readd the skipping of _staging_workflow file
A repository with 150k commits is just very hard to work with - especially if 99% of them are worthless
This commit is contained in:
parent
7bc4d6c8b1
commit
a294c0f670
@ -172,6 +172,13 @@ class DBRevision:
|
|||||||
(xml.get("srcmd5"), self.dbid),
|
(xml.get("srcmd5"), self.dbid),
|
||||||
)
|
)
|
||||||
for entry in xml.findall("entry"):
|
for entry in xml.findall("entry"):
|
||||||
|
# this file creates easily 100k commits and is just useless data :(
|
||||||
|
# unfortunately it's stored in the same meta package as the project config
|
||||||
|
if (
|
||||||
|
entry.get("name") == "_staging_workflow"
|
||||||
|
and self.package == "_project"
|
||||||
|
):
|
||||||
|
continue
|
||||||
cur.execute(
|
cur.execute(
|
||||||
"""INSERT INTO files (name, md5, size, mtime, revision_id)
|
"""INSERT INTO files (name, md5, size, mtime, revision_id)
|
||||||
VALUES (%s,%s,%s,%s,%s)""",
|
VALUES (%s,%s,%s,%s,%s)""",
|
||||||
|
Loading…
Reference in New Issue
Block a user