diff options
-rw-r--r-- | bitbake/lib/bb/fetch/hg.py | 5 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py index ee3bd2f7fe..c7d2e62c13 100644 --- a/bitbake/lib/bb/fetch/hg.py +++ b/bitbake/lib/bb/fetch/hg.py | |||
@@ -79,7 +79,10 @@ class Hg(Fetch): | |||
79 | host = "/" | 79 | host = "/" |
80 | ud.host = "localhost" | 80 | ud.host = "localhost" |
81 | 81 | ||
82 | hgroot = host + ud.path | 82 | if ud.user == None: |
83 | hgroot = host + ud.path | ||
84 | else: | ||
85 | hgroot = ud.user + "@" + host + ud.path | ||
83 | 86 | ||
84 | if command is "info": | 87 | if command is "info": |
85 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) | 88 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index d57ff4e7c8..0cdcb2e3c4 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -226,6 +226,7 @@ CVSDIR = "${CO_DIR}/cvs" | |||
226 | SVNDIR = "${CO_DIR}/svn" | 226 | SVNDIR = "${CO_DIR}/svn" |
227 | GITDIR = "${CO_DIR}/git" | 227 | GITDIR = "${CO_DIR}/git" |
228 | BZRDIR = "${CO_DIR}/bzr" | 228 | BZRDIR = "${CO_DIR}/bzr" |
229 | HGDIR = "${CO_DIR}/hg" | ||
229 | 230 | ||
230 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PF}" | 231 | STAMP = "${TMPDIR}/stamps/${MULTIMACH_TARGET_SYS}/${PF}" |
231 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PF}" | 232 | WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PF}" |
@@ -471,6 +472,7 @@ FETCHCMD_svn = "/usr/bin/env svn" | |||
471 | FETCHCMD_cvs = "/usr/bin/env cvs" | 472 | FETCHCMD_cvs = "/usr/bin/env cvs" |
472 | FETCHCMD_wget = "/usr/bin/env wget -t 5" | 473 | FETCHCMD_wget = "/usr/bin/env wget -t 5" |
473 | FETCHCMD_bzr = "/usr/bin/env bzr" | 474 | FETCHCMD_bzr = "/usr/bin/env bzr" |
475 | FETCHCMD_hg = "/usr/bin/env hg" | ||
474 | 476 | ||
475 | FETCHCOMMAND = "ERROR, this must be a BitBake bug" | 477 | FETCHCOMMAND = "ERROR, this must be a BitBake bug" |
476 | FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}" | 478 | FETCHCOMMAND_wget = "/usr/bin/env wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}" |