Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 18553:b6b9475c563a stable
largefiles: don't crash when trying to find default dest for url without path
b32e55e6c3c7 introduced a crash when cloning a url without path - where
util.url().path would be None.
This None will now be handled as ''. clone will thus abort with 'repository /
not found' as before.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 04 Feb 2013 23:26:44 +0100 |
parents | 798ab869b2ee |
children | a9c443b3b240 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Feb 04 23:25:25 2013 +0100 +++ b/mercurial/hg.py Mon Feb 04 23:26:44 2013 +0100 @@ -122,7 +122,7 @@ def defaultdest(source): '''return default destination of clone if none is given''' - return os.path.basename(os.path.normpath(util.url(source).path)) + return os.path.basename(os.path.normpath(util.url(source).path or '')) def share(ui, source, dest=None, update=True): '''create a shared repository'''