summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/hg.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 15:40:51 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:41 +0000
commit4df0d6adcaae5382009c356d750e7909a44284f6 (patch)
treed3b8b48e0ded47a63c4ea65b56add754cc750126 /bitbake/lib/bb/fetch/hg.py
parentb7d667f25283cddf8ff4fc9e35425a884a9f527e (diff)
downloadpoky-4df0d6adcaae5382009c356d750e7909a44284f6.tar.gz
fetch: be more pythonic
no functional changes (Bitbake rev: e88834fb7c6821cc29c12d296f2edd51f6eb3746) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch/hg.py')
-rw-r--r--bitbake/lib/bb/fetch/hg.py9
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":