hgext/convert/__init__.py
changeset 4885 d77accdd236e
parent 4811 a5209b0487e0
parent 4884 72ac66e88c43
child 4896 ee04732fe61d
--- a/hgext/convert/__init__.py
+++ b/hgext/convert/__init__.py
@@ -274,12 +274,14 @@ def _convert(ui, src, dest=None, mapfile
     convert will only import up to the named revision (given in a format
     understood by the source).
 
-    If destination isn't given, a new Mercurial repo named <src>-hg will
-    be created. If <mapfile> isn't given, it will be put in a default
-    location (<dest>/.hg/shamap by default)
+    If no destination directory name is specified, it defaults to the
+    basename of the source with '-hg' appended.  If the destination
+    repository doesn't exist, it will be created.
 
-    The <mapfile> is a simple text file that maps each source commit ID to
-    the destination ID for that revision, like so:
+    If <mapfile> isn't given, it will be put in a default location
+    (<dest>/.hg/shamap by default).  The <mapfile> is a simple text
+    file that maps each source commit ID to the destination ID for
+    that revision, like so:
     <source ID> <destination ID>
 
     If the file doesn't exist, it's automatically created.  It's updated
@@ -294,7 +296,7 @@ def _convert(ui, src, dest=None, mapfile
     '''
 
     if not dest:
-        dest = src + "-hg"
+        dest = hg.defaultdest(src) + "-hg"
         ui.status("assuming destination %s\n" % dest)
 
     # Try to be smart and initalize things when required