diff options
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": |