diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/hg.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/hg.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index 0f8d9b8324..6bc261ae68 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py | |||
| @@ -44,10 +44,7 @@ class Hg(Fetch): | |||
| 44 | return ud.type in ['hg'] | 44 | return ud.type in ['hg'] |
| 45 | 45 | ||
| 46 | def forcefetch(self, url, ud, d): | 46 | def forcefetch(self, url, ud, d): |
| 47 | if 'rev' in ud.parm: | 47 | revTag = ud.parm.get('rev', 'tip') |
| 48 | revTag = ud.parm['rev'] | ||
| 49 | else: | ||
| 50 | revTag = "tip" | ||
| 51 | return revTag == "tip" | 48 | return revTag == "tip" |
| 52 | 49 | ||
| 53 | def localpath(self, url, ud, d): | 50 | def localpath(self, url, ud, d): |
| @@ -84,9 +81,7 @@ class Hg(Fetch): | |||
| 84 | 81 | ||
| 85 | basecmd = data.expand('${FETCHCMD_hg}', d) | 82 | basecmd = data.expand('${FETCHCMD_hg}', d) |
| 86 | 83 | ||
| 87 | proto = "http" | 84 | proto = ud.parm.get('proto', 'http') |
| 88 | if "proto" in ud.parm: | ||
| 89 | proto = ud.parm["proto"] | ||
| 90 | 85 | ||
| 91 | host = ud.host | 86 | host = ud.host |
| 92 | if proto == "file": | 87 | if proto == "file": |
