From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Jon Szymaniak <jon.szymaniak@gmail.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: hg fetcher failures for SRCREV set to a tag
Date: Fri, 14 Dec 2012 17:46:57 +0000 [thread overview]
Message-ID: <1355507217.32519.33.camel@ted> (raw)
In-Reply-To: <CANge7vVgnJTskixvCtbWThgq8uqrS9fag8DcHL7HLb732ckDNg@mail.gmail.com>
On Wed, 2012-12-05 at 19:17 -0500, Jon Szymaniak wrote:
> tl;dr: Doesn't the "update" in lines 142-147 of hg.py cause issues when
> SRCREV is a tag?
>
>
> Hi all,
>
> I didn't have any luck with this post on the Yocto mailing list. Since it seems
> more like a bitbake issue (I'm very hesitant to cry "bug" at this point),
> I hope I'm in the right place.
>
> I've been running into "Fetcher failures" for my recipes using
> mercurial recently, which report that I'm asking for an unknown revision,
> despite it being valid. A trimmed log is at the end of this post.
>
> After looking at hg.py, it seems the issue is that the
> 'hg update -r MY_TAG' that follows the 'hg clone -r MY_TAG ...' is doomed to
> fail because that tag isn't visible until the next rev, where the action of
> tagging it is committed.
>
> For example, if I clone v1.1.0, I won't see that tag because the tag is added
> to .hgtags in commit 41:58b..
>
> tip 41:58b8f368be68
> v1.1.0 40:a925b596c163
> v1.0.4 39:6bf84da2571e
>
> Therefore once I've cloned with "-r v1.1.0", I can't do an update
> specifying tag v1.1.0.
>
> Does this sound right, or am I way off here?
>
> I'm not sure if using a tag rather than the revision number is unorthodox or
> abnormal for bb's, so below's my use case, for a my-app_0.1.2.bb
>
> require my-app.inc
> PR = "${INC_PR}.0"
> SRCREV = "v${PV}"
>
> Therefore to bring in a new version, I can simply copy this file to a
> my-app_1.1.0.bb, and adjust PR back to 0 if needed.
>
> We have a policy not to move version tags, so tag-->revision should be 1:1. Is
> what I'm seeing a non-issue simply because one shouldn't use tags in SRCREV?
>
FWIW, the hg fetcher is a little unloved. We don't have many developers
who use it or are familiar with how hg works. If there are some ways we
can fix things I'd be interested in patches.
I'm afraid I haven't had a chance to look at the details of the above
yet though.
Cheers,
Richard
next prev parent reply other threads:[~2012-12-14 18:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 0:17 hg fetcher failures for SRCREV set to a tag Jon Szymaniak
2012-12-14 17:46 ` Richard Purdie [this message]
[not found] ` <CANge7vVQnTVasye41HJiB9JOMno4fTX5mn=p499y7kus5O4NQw@mail.gmail.com>
2012-12-14 19:09 ` Jon Szymaniak
2012-12-14 21:12 ` Chris Larson
2012-12-22 17:36 ` Jon Szymaniak
2013-01-18 12:51 ` Richard Purdie
2013-01-18 18:35 ` Jon Szymaniak
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=1355507217.32519.33.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=jon.szymaniak@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.