mercurial/hg.py
changeset 2479 10ec8039e1d8
parent 2475 7a77934ece46
child 2549 e1831f06eef1
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -55,6 +55,7 @@ schemes = {
     }
 
 def repository(ui, path=None, create=0):
+    if not path: path = ''
     scheme = path
     if scheme:
         c = scheme.find(':')