hg.repository: many routines expect path to be a string even if empty.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Wed, 21 Jun 2006 17:09:29 -0700
changeset 2479 10ec8039e1d8
parent 2478 287b7da4aeaa
child 2480 519a1011db91
hg.repository: many routines expect path to be a string even if empty.
mercurial/hg.py
--- a/mercurial/hg.py	Wed Jun 21 16:20:21 2006 -0700
+++ b/mercurial/hg.py	Wed Jun 21 17:09:29 2006 -0700
@@ -55,6 +55,7 @@
     }
 
 def repository(ui, path=None, create=0):
+    if not path: path = ''
     scheme = path
     if scheme:
         c = scheme.find(':')