summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/hg.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 12:07:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 12:23:23 +0100
commit67fac77e10269099796a6bd03ddaf1580949a4b8 (patch)
treeecad8654411a5954483843ea76ad626b9ee27029 /bitbake/lib/bb/fetch2/hg.py
parent626b96e255b6461e2bce209ecfc1ff110f65d54e (diff)
downloadpoky-67fac77e10269099796a6bd03ddaf1580949a4b8.tar.gz
Fix more incorrect usages of 'is'
(Bitbake rev: a26a2f548419af0e971ad21ec0a29e5245fe307f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r--bitbake/lib/bb/fetch2/hg.py8
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)