diff options
author | Jon Szymaniak <jon.szymaniak@gmail.com> | 2012-12-17 09:22:51 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-18 12:50:13 +0000 |
commit | 94284f1ce0e45417e19f6fd8269e08e20e29777d (patch) | |
tree | f67b01e9ba7b696d39b179f09e9c46b08d310f2d /bitbake/lib | |
parent | 0e408df69fd7a380d96501f13e81976eaea26fa4 (diff) | |
download | poky-94284f1ce0e45417e19f6fd8269e08e20e29777d.tar.gz |
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 <jon.szymaniak@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 7 |
1 files changed, 6 insertions, 1 deletions
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): | |||
98 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) | 98 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) |
99 | 99 | ||
100 | options = []; | 100 | options = []; |
101 | if ud.revision: | 101 | |
102 | # Don't specify revision for the fetch; clone the entire repo. | ||
103 | # This avoids an issue if the specified revision is a tag, because | ||
104 | # the tag actually exists in the specified revision + 1, so it won't | ||
105 | # be available when used in any successive commands. | ||
106 | if ud.revision and command != "fetch": | ||
102 | options.append("-r %s" % ud.revision) | 107 | options.append("-r %s" % ud.revision) |
103 | 108 | ||
104 | if command == "fetch": | 109 | if command == "fetch": |