From 94284f1ce0e45417e19f6fd8269e08e20e29777d Mon Sep 17 00:00:00 2001 From: Jon Szymaniak Date: Mon, 17 Dec 2012 09:22:51 -0500 Subject: bitbake: hg.py: Fixed fetch failure that occurs when SRCREV is a tag. 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.) (Bitbake rev: f0a6261d3a8ede9ebdb6383e02cb2c2de1690640) Signed-off-by: Jon Szymaniak Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/hg.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/hg.py') diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 155ae67bbd..b1c8675dd4 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/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": -- cgit v1.2.3-54-g00ecf