diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 35a4b3c30a..f2719d4f9e 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -92,21 +92,21 @@ class Hg(FetchMethod): | |||
92 | else: | 92 | else: |
93 | hgroot = ud.user + "@" + host + ud.path | 93 | hgroot = ud.user + "@" + host + ud.path |
94 | 94 | ||
95 | if command is "info": | 95 | if command == "info": |
96 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) | 96 | return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module) |
97 | 97 | ||
98 | options = []; | 98 | options = []; |
99 | if ud.revision: | 99 | if ud.revision: |
100 | options.append("-r %s" % ud.revision) | 100 | options.append("-r %s" % ud.revision) |
101 | 101 | ||
102 | if command is "fetch": | 102 | if command == "fetch": |
103 | cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) | 103 | cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) |
104 | elif command is "pull": | 104 | elif command == "pull": |
105 | # do not pass options list; limiting pull to rev causes the local | 105 | # do not pass options list; limiting pull to rev causes the local |
106 | # repo not to contain it and immediately following "update" command | 106 | # repo not to contain it and immediately following "update" command |
107 | # will crash | 107 | # will crash |
108 | cmd = "%s pull" % (basecmd) | 108 | cmd = "%s pull" % (basecmd) |
109 | elif command is "update": | 109 | elif command == "update": |
110 | cmd = "%s update -C %s" % (basecmd, " ".join(options)) | 110 | cmd = "%s update -C %s" % (basecmd, " ".join(options)) |
111 | else: | 111 | else: |
112 | raise FetchError("Invalid hg command %s" % command, ud.url) | 112 | raise FetchError("Invalid hg command %s" % command, ud.url) |