summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/fetch/hg.py
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-07 23:49:55 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-07 23:49:55 +0000
commite9b7bc6914c0f1d9282f92748eaa3d308f5d03fd (patch)
tree69129b5ebf7e9f8d36062ff200636b9367971905 /bitbake/lib/bb/fetch/hg.py
parente7198e490325a95f1f5c301f76005e4333a08dad (diff)
downloadopenembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.gz
openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.bz2
openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.tar.xz
openembedded-core-e9b7bc6914c0f1d9282f92748eaa3d308f5d03fd.zip
bitbake: fetcher updates - Add BB_GENERATE_MIRROR_TARBALLS option to allow disabling tarball creation to speedup git fetches, improve srcrev handling to remove some hacks and remove the need for external workarounds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3101 311d38ba-8fff-0310-9ca6-ca027cbcb966
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 8e8073e56..6b9382280 100644
--- a/bitbake/lib/bb/fetch/hg.py
+++ b/bitbake/lib/bb/fetch/hg.py
@@ -57,15 +57,14 @@ class Hg(Fetch):
if 'rev' in ud.parm:
ud.revision = ud.parm['rev']
- else:
- #
- rev = data.getVar("SRCREV", d, 0)
- if rev and "get_srcrev" in rev:
- ud.revision = self.latest_revision(url, ud, d)
- elif rev:
- ud.revision = rev
- else:
- ud.revision = ""
+ #else:
+ # rev = data.getVar("SRCREV", d, 1)
+ # if rev is "SRCREVINACTION":
+ # rev = self.latest_revision(url, ud, d)
+ # if rev:
+ # ud.revision = rev
+ # else:
+ # ud.revision = ""
ud.localfile = data.expand('%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision), d)