From: Jon Szymaniak <jon.szymaniak@gmail.com>
To: bitbake-devel@lists.openembedded.org
Subject: [PATCH 1/1] hg.py: Fixed fetch failure that occurs when SRCREV is a tag.
Date: Mon, 17 Dec 2012 09:22:51 -0500 [thread overview]
Message-ID: <50CF2ABB.2000002@gmail.com> (raw)
Removed "-r REV" from hg clone invocation to fetch the entire repo,
rather than just the subset at the specified revision. This will ensure
that the specified tag exists for successive commands (e.g., the update
built on line 149.)
Signed-off-by: Jon Szymaniak <jon.szymaniak@gmail.com>
---
lib/bb/fetch2/hg.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py
index 155ae67..be0ef3b 100644
--- a/lib/bb/fetch2/hg.py
+++ b/lib/bb/fetch2/hg.py
@@ -98,7 +98,12 @@ class Hg(FetchMethod):
return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module)
options = [];
- if ud.revision:
+
+ # Don't specify revision for the fetch; clone the entire repo.
+ # This avoids an issue if the specified revision is a tag, because
+ # the tag actually exists in the specified revision + 1, so it won't
+ # be available when used in any successive commands.
+ if ud.revision and command != "fetch":
options.append("-r %s" % ud.revision)
if command == "fetch":
reply other threads:[~2012-12-17 14:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=50CF2ABB.2000002@gmail.com \
--to=jon.szymaniak@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
/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.