changeset 2479:10ec8039e1d8

hg.repository: many routines expect path to be a string even if empty.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Wed, 21 Jun 2006 17:09:29 -0700
parents 287b7da4aeaa
children 519a1011db91
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(':')