summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch/hg.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py
index f70611017b..ca3a084bb6 100644
--- a/bitbake/lib/bb/fetch/hg.py
+++ b/bitbake/lib/bb/fetch/hg.py
@@ -36,13 +36,20 @@ from bb.fetch import runfetchcmd
36from bb.fetch import logger 36from bb.fetch import logger
37 37
38class Hg(Fetch): 38class Hg(Fetch):
39 """Class to fetch a from mercurial repositories""" 39 """Class to fetch from mercurial repositories"""
40 def supports(self, url, ud, d): 40 def supports(self, url, ud, d):
41 """ 41 """
42 Check to see if a given url can be fetched with mercurial. 42 Check to see if a given url can be fetched with mercurial.
43 """ 43 """
44 return ud.type in ['hg'] 44 return ud.type in ['hg']
45 45
46 def forcefetch(self, url, ud, d):
47 if 'rev' in ud.parm:
48 revTag = ud.parm['rev']
49 else:
50 revTag = "tip"
51 return revTag == "tip"
52
46 def localpath(self, url, ud, d): 53 def localpath(self, url, ud, d):
47 if not "module" in ud.parm: 54 if not "module" in ud.parm:
48 raise MissingParameterError("hg method needs a 'module' parameter") 55 raise MissingParameterError("hg method needs a 'module' parameter")