aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/hg.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 12:07:24 -0700
committerChris Larson <chris_larson@mentor.com>2011-03-16 07:38:39 -0700
commita26a2f548419af0e971ad21ec0a29e5245fe307f (patch)
tree4cb637769e8716f5eeb9aefc97740eb3414137c7 /lib/bb/fetch2/hg.py
parent8f5cf3a9975d8e6878e403be0e6edc22cc44f396 (diff)
downloadbitbake-a26a2f548419af0e971ad21ec0a29e5245fe307f.tar.gz
Fix more incorrect usages of 'is'
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/fetch2/hg.py')
-rw-r--r--lib/bb/fetch2/hg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py
index 35a4b3c30..f2719d4f9 100644
--- a/lib/bb/fetch2/hg.py
+++ b/lib/bb/fetch2/hg.py
@@ -92,21 +92,21 @@ class Hg(FetchMethod):
else:
hgroot = ud.user + "@" + host + ud.path
- if command is "info":
+ if command == "info":
return "%s identify -i %s://%s/%s" % (basecmd, proto, hgroot, ud.module)
options = [];
if ud.revision:
options.append("-r %s" % ud.revision)
- if command is "fetch":
+ if command == "fetch":
cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module)
- elif command is "pull":
+ elif command == "pull":
# do not pass options list; limiting pull to rev causes the local
# repo not to contain it and immediately following "update" command
# will crash
cmd = "%s pull" % (basecmd)
- elif command is "update":
+ elif command == "update":
cmd = "%s update -C %s" % (basecmd, " ".join(options))
else:
raise FetchError("Invalid hg command %s" % command, ud.url)