# HG changeset patch # User mpm@selenic.com # Date 1127407623 25200 # Node ID d37a46859acdb887d709a428670b59d7d17cd051 # Parent 1cc7c0cbc30b39b224334416279a2e71546c6d7b 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. diff -r 1cc7c0cbc30b -r d37a46859acd mercurial/commands.py --- 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)