changeset 4883:72ac66e88c43

convert: Use clone's behaviour for the default destionation name. Adjusted the documentation for this and for the fact that the destionation is created even if a name is specified.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 15 Jul 2007 21:04:07 +0200
parents 25d753efd48e
children 931f901ab811 d77accdd236e
files hgext/convert/__init__.py
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/__init__.py	Sun Jul 15 14:09:56 2007 +0200
+++ b/hgext/convert/__init__.py	Sun Jul 15 21:04:07 2007 +0200
@@ -248,12 +248,14 @@
     Accepted destination formats:
     - Mercurial
 
-    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
@@ -272,7 +274,7 @@
         raise util.Abort("%s: can't read from this repo type" % src)
 
     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