public inbox for bitbake-devel@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Paul Barker <paul@pbarker.dev>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH] bitbake/bzr: Drop check for unset .revision after .setup_revisions()
Date: Wed, 11 Feb 2026 18:37:26 +0100	[thread overview]
Message-ID: <aYy8KMgZOhqfDnph@monoceros> (raw)
In-Reply-To: <5bcaffcd860a42d9b0d28d6eb43b58ba8ca6c4f2.camel@pbarker.dev>

[-- Attachment #1: Type: text/plain, Size: 2527 bytes --]

Hello Paul,

On Wed, Feb 11, 2026 at 11:56:29AM +0000, Paul Barker wrote:
> On Mon, 2025-10-06 at 16:02 +0200, Uwe Kleine-König wrote:
> > FetchMethod.latest_revision() expects three parameters, so the call
> > `self.latest_revision(ud, d)` triggers an exception.
> > 
> > Drop that error path that obviously isn't used.
> > 
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> > ---
> > Hello,
> > 
> > I didn't hit this exception and only noticed that problem during
> > research for another problem. I'm unsure if deleting is really the right
> > thing to do (i.e. if .setup_revisions() always returns something that
> > evaluates to True when interpreted as Bool), but it seems nobody hit
> > that error path since commit 7b7a4517c600 ("fetch2: Allow multiple src
> > rev to be used in one src_uri").
> > (Hmm, maybe the author of commit 7c94ca56b2fd ("fetch2: Correct a few
> > calls to latest_revision()") should have noticed ....)
> > 
> > There is a similar issue in lib/bb/fetch2/hg.py. I'll postpone sending a
> > patch for that until we agreed on what to do here.
> 
> Apologies, this patch seems to have dropped through the cracks. Feel
> free to send us a ping after a couple of weeks in the future if you've
> had no replies.

I forgot about this, too :-) I only sent it because the status quo
looked wrong to me and after sending the patch considered my duty done.

> >  lib/bb/fetch2/bzr.py | 3 ---
> >  1 file changed, 3 deletions(-)
> > 
> > diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
> > index fc558f50b047..443195fa00bc 100644
> > --- a/lib/bb/fetch2/bzr.py
> > +++ b/lib/bb/fetch2/bzr.py
> > @@ -35,9 +35,6 @@ class Bzr(FetchMethod):
> >  
> >          ud.setup_revisions(d)
> >  
> > -        if not ud.revision:
> > -            ud.revision = self.latest_revision(ud, d)
> > -
> 
> Looking at the git fetcher, this should probably be fixed to call
> self.latest_revision(ud, d, ud.name) instead.
> 
> Are you actually using the bzr fetcher? I'd like to propose deprecating
> it then removing it after the LTS release.

No I don't. I worked on the git fetcher (resulting in commits
ddf00d6aee955878c070327ee8d751fdb6099444 and
cb36e8a62d7d31b75b3ddc6b84c1bdee09ebbc60 in oe-core) and just looked
left and right while doing that.

So I'm unsure what to do next here. Given that I'm not using the bzr
fetcher (nor the hg one), is a patch adding `ud.name` to these callers
welcome and sensible?

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2026-02-11 17:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-06 14:02 [PATCH] bitbake/bzr: Drop check for unset .revision after .setup_revisions() Uwe Kleine-König
2026-02-11 11:56 ` Paul Barker
2026-02-11 17:37   ` Uwe Kleine-König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aYy8KMgZOhqfDnph@monoceros \
    --to=u.kleine-koenig@baylibre.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=paul@pbarker.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox