summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/hg.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/hg.py')
-rw-r--r--bitbake/lib/bb/fetch/hg.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py
index 8e8073e56d..6b93822803 100644
--- a/bitbake/lib/bb/fetch/hg.py
+++ b/bitbake/lib/bb/fetch/hg.py
@@ -57,15 +57,14 @@ class Hg(Fetch):
57 57
58 if 'rev' in ud.parm: 58 if 'rev' in ud.parm:
59 ud.revision = ud.parm['rev'] 59 ud.revision = ud.parm['rev']
60 else: 60 #else:
61 # 61 # rev = data.getVar("SRCREV", d, 1)
62 rev = data.getVar("SRCREV", d, 0) 62 # if rev is "SRCREVINACTION":
63 if rev and "get_srcrev" in rev: 63 # rev = self.latest_revision(url, ud, d)
64 ud.revision = self.latest_revision(url, ud, d) 64 # if rev:
65 elif rev: 65 # ud.revision = rev
66 ud.revision = rev 66 # else:
67 else: 67 # ud.revision = ""
68 ud.revision = ""
69 68
70 ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d) 69 ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d)
71 70