--- a/mercurial/hg.py Sat Dec 19 13:10:46 2009 +0100+++ b/mercurial/hg.py Sat Dec 19 22:56:01 2009 -0800@@ -88,7 +88,7 @@ raise util.Abort(_('can only share local repositories')) if not dest:- dest = os.path.basename(source)+ dest = defaultdest(source) else: dest = ui.expandpath(dest)