Skip to content

fix: expand a branch link three ways against its base revision - #183

Open
plusky wants to merge 6 commits into
mainfrom
fix/4.0.3
Open

plusky wants to merge 6 commits into
mainfrom
fix/4.0.3

Conversation

@plusky

@plusky plusky commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

A home branch that replaces or removes a file (the old tarball) was expanded wrongly: the gate overlaid the branch on the target by file name, and the guard took the target's files alone, so --obs-build reported "OBS holds other files" and filing was refused on a stamped tree. The gate, the guard, forward-check, changes-patches, bug-guard and the incoming review now merge a <branch/> link three ways against its baserev, as OBS does; an unreadable base stays a refusal.

A home branch holds a full copy of the package beside a _link with a
<branch/> patch and the baserev it was made at. The gate expanded every
link as the target's files with the link's own laid over by name, so a
file the branch replaced or removed stayed in the listing: after an
update that renamed the tarball, --obs-build answered "OBS holds other
files" for the target's old one, on a tree OBS held exactly.

Such a link is now merged as OBS merges it: a file the branch changed,
added or removed against the target at baserev is the branch's, any
other the target's as it is now, or at the link's rev. A base listing
that cannot be read gives no listing, so the verdict is UNKNOWN. A link
without a <branch/> patch or a baserev keeps the overlay.
…mp check

For a submit the guard compares the source's expanded files with the
gate's stamps. Its expanded listing of a link was the link target's
files, whole, in place of the source's own. A home branch holds a full
copy beside a _link with a <branch/> patch, so a request from one was
compared on the target's files: a GREEN, reviewed and built tree was
answered "no GREEN gate.sh run with a recorded review PASS has these
files" as soon as the branch differed from its target.

A link with a <branch/> patch and a baserev is now merged as OBS merges
it: a file the branch changed, added or removed against the target at
baserev is the branch's, any other the target's. A _link, base or target
listing that cannot be read fails the lookup, which asks. Any other link
is read as before.
A devel package that is a branch of Factory's holds a full copy beside a
_link with a <branch/> patch. Its files were read as Factory's with its
own laid over by name, so a file it replaced or removed stayed in them,
and a forward that carried exactly the devel package's files read as
stale.

Such a link is now merged as OBS merges it, against the target at its
baserev. A base listing that cannot be read is UNKNOWN, never an absent
package.
…its baserev

A target that is a branch link was read as its own target's files with
the branch's laid over by name, so a patch the branch had removed still
counted as the target's, and a change that never touched it was told to
mention its removal.

Such a link is now merged as OBS merges it, against the target at its
baserev. A base listing that cannot be read fails the run.
The hand-back is allowed when the request's .changes adds the bug. A
request from a branch link was read as the branch's files over its
target's by name, so a .changes the branch had removed was still read
from the target, and a fix the request does not carry could prove the
hand-back.

A link with a <branch/> patch and a baserev is now merged as OBS merges
it, against the target at baserev. A base listing that cannot be read is
an ask.
…its baserev

A contributor's request mostly comes from a home branch: a full copy of
the package beside a _link with a <branch/> patch. Its files were read
as the target's with its own laid over by name, so a file the branch
replaced or removed stayed in the source: an update that renamed the
tarball showed the new one as added and never the old one as removed,
and the key was taken over files the request does not carry.

Such a link is now merged as OBS merges it, against the target at its
baserev. A base listing that cannot be read is a failed lookup, exit 5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant