# HG changeset patch # User Vadim Gelfer # Date 2006-06-22 00:09:29 # Node ID 10ec8039e1d86f453a107203a5fda7c8f6841b1c # Parent 287b7da4aeaad0bba891238eb0d70f778e296e9f hg.repository: many routines expect path to be a string even if empty. diff --git a/mercurial/hg.py b/mercurial/hg.py --- 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(':')