changeset 1314:d37a46859acd

Fix default clone destination The default clone wasn't working: $ hg clone hg abort: repository hg/.hg not found! This was because we were creating the destination directory from the default, then checking whether it existed to determine whether to expand the path.
author mpm@selenic.com
date Thu, 22 Sep 2005 09:47:03 -0700
parents 1cc7c0cbc30b
children 32f6cae83db7
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Sep 22 09:42:15 2005 -0700
+++ b/mercurial/commands.py	Thu Sep 22 09:47:03 2005 -0700
@@ -622,9 +622,10 @@
     if opts['remotecmd']:
         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
 
-    d = Dircleanup(dest)
     if not os.path.exists(source):
         source = ui.expandpath(source)
+
+    d = Dircleanup(dest)
     abspath = source
     other = hg.repository(ui, source)