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.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/hg.py b/bitbake/lib/bb/fetch/hg.py
index c7d2e62c13..1cd5a8aa5c 100644
--- a/bitbake/lib/bb/fetch/hg.py
+++ b/bitbake/lib/bb/fetch/hg.py
@@ -94,7 +94,10 @@ class Hg(Fetch):
94 if command is "fetch": 94 if command is "fetch":
95 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)
96 elif command is "pull": 96 elif command is "pull":
97 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)
98 elif command is "update": 101 elif command is "update":
99 cmd = "%s update -C %s" % (basecmd, " ".join(options)) 102 cmd = "%s update -C %s" % (basecmd, " ".join(options))
100 else: 103 else: