Importer for OBS packages into git
Go to file
Stephan Kulow 2784171f75 Create fake revisions for every commit in the base of a linked package
This is a rather complex operation, but whenever a package changes in
Factory, the inherited package gets a shadow revision consisting of the
3-way merge. If this happens due to a request being accepted, this is
actually in most cases also commited by 'buildservice-autocommit',
so we're making sure this is always happening (and are actually
duplicating revisions in cases that we filter out later as empty
commits).

To differenciate the fake revisions from the real revisions, I add
a fraction part
2022-10-26 14:56:38 +02:00
lib Create fake revisions for every commit in the base of a linked package 2022-10-26 14:56:38 +02:00
tests Create fake revisions for every commit in the base of a linked package 2022-10-26 14:56:38 +02:00
.gitignore Split Request and Revision 2022-10-17 14:53:39 +02:00
database.ini Split the database config into 2 sections 2022-10-17 19:50:25 +02:00
git-importer.py Add the capability to export the package data as test fixture 2022-10-26 14:13:24 +02:00
Makefile Add a small test case 2022-10-17 20:52:05 +02:00
README.md Create fake revisions for every commit in the base of a linked package 2022-10-26 14:56:38 +02:00

sudo zypper in python3-psycopg2 sudo su - postgres

createdb -O <LOCAL_USER> imported_git

To reset the database, drop table scheme