summaryrefslogtreecommitdiffstats
path: root/bitbake-dev/lib/bb/fetch/hg.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake-dev/lib/bb/fetch/hg.py')
-rw-r--r--bitbake-dev/lib/bb/fetch/hg.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake-dev/lib/bb/fetch/hg.py b/bitbake-dev/lib/bb/fetch/hg.py
index ee3bd2f7fe..1cd5a8aa5c 100644
--- a/bitbake-dev/lib/bb/fetch/hg.py
+++ b/bitbake-dev/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)
@@ -91,7 +94,10 @@ class Hg(Fetch):
91 if command is "fetch": 94 if command is "fetch":
92 cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) 95 cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module)
93 elif command is "pull": 96 elif command is "pull":
94 cmd = "%s pull %s" % (basecmd, " ".join(options)) 97 # do not pass options list; limiting pull to rev causes the local
98 # repo not to contain it and immediately following "update" command
99 # will crash
100 cmd = "%s pull" % (basecmd)
95 elif command is "update": 101 elif command is "update":
96 cmd = "%s update -C %s" % (basecmd, " ".join(options)) 102 cmd = "%s update -C %s" % (basecmd, " ".join(options))
97 else: 103 else: