Merge with stable
authorBrendan Cully <brendan@kublai.com>
Sat, 19 Dec 2009 22:56:01 -0800
changeset 10100 be442c7d84b4
parent 10098 c7eeec114d99 (current diff)
parent 10099 f5e46dfb38c7 (diff)
child 10101 155fe35534d3
Merge with stable
--- 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)