main #36

Open
adamm wants to merge 10 commits from adamm/git-importer:main into main
Contributor

Fixes from devel import.

Fixes from devel import.
adamm added 10 commits 2025-09-04 14:10:54 +02:00
This reverts commit 44b4d690db.

this breaks detection of scmsync projects. Jan can live with not synced
git for a few weeks
_service: files should not be imported. They are created
by OBS service and will be re-created by OBS during scm sync

Also, not allowed in Factory by policy anyway. So this affects
devel and home projects only
If commits in devel are younger than factory, we should
probalby export them too....
If the state file is missing, we can reconstruct which parts were
exported based on revision ids

Also, packages could have branches in Git, but not be in Git. We
need to check (project,package) tuple for this and not just abort
based on the package name alone.
We can reconstruct the state based on log messages. Otherwise,
it's incorrect as the trimming function removes exported parts
anyway and then we have missing commits
mcepl reviewed 2025-09-04 15:56:49 +02:00
mcepl left a comment
First-time contributor

I haven’t dived sufficiently deep to be able to make a judgement on this PR, but I have some comments on it.

I haven’t dived sufficiently deep to be able to make a judgement on this PR, but I have some comments on it.
@@ -161,2 +161,4 @@
)
def branch_commit(self, branch="HEAD"):
try:
First-time contributor

Using try … except as a substitute for if … then … else is always a code smell. Couldn’t you find some civilized way how to decide when to run that command without just trying it blindly?

Using `try … except` as a substitute for `if … then … else` is always a code smell. Couldn’t you find some civilized way how to decide when to run that command without just trying it blindly?
@@ -70,3 +137,1 @@
left_to_commit = self.check_repo_state(flats, branch_state)
if not left_to_commit:
if tree == None: # eg. python-M2Crypto errors
First-time contributor

??? As a maintainer of M2Crypto (both upstream and in openSUSE), I am curious about this comment? What’s the problem with it?

??? As a maintainer of M2Crypto (both upstream and in openSUSE), I am curious about this comment? What’s the problem with it?
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:adamm-main
git checkout adamm-main
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: importers/git-importer#36
No description provided.