From a294c0f6702328eb907982f3afa8125994ffb3e2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 6 Nov 2022 08:29:17 +0100 Subject: [PATCH] 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 --- lib/db_revision.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/db_revision.py b/lib/db_revision.py index ddbe283..99491e0 100644 --- a/lib/db_revision.py +++ b/lib/db_revision.py @@ -172,6 +172,13 @@ class DBRevision: (xml.get("srcmd5"), self.dbid), ) 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( """INSERT INTO files (name, md5, size, mtime, revision_id) VALUES (%s,%s,%s,%s,%s)""",