fetch/hg.py: Properly format the command if the user URI parameter is empty.
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Oct 2008 16:49:02 +0000 (16:49 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Oct 2008 16:49:02 +0000 (16:49 +0000)
lib/bb/fetch/hg.py

index 1cd5a8a..b87fd0f 100644 (file)
@@ -79,7 +79,7 @@ class Hg(Fetch):
             host = "/"
             ud.host = "localhost"
 
-        if ud.user == None:
+        if not ud.user:
             hgroot = host + ud.path
         else:
             hgroot = ud.user + "@" + host + ud.path