# HG changeset patch # User mpm@selenic.com # Date 1124520523 28800 # Node ID a425123e6afe3f370a55e051278bcb38d1b6c7eb # Parent 3f37720e7dc717d76247a28e30b810b5452ab4df Use post-expanded clone pathname as default diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -495,8 +495,8 @@ def clone(ui, source, dest=None, **opts) ui.setconfig("ui", "remotecmd", opts['remotecmd']) d = Dircleanup(dest) + source = ui.expandpath(source) abspath = source - source = ui.expandpath(source) other = hg.repository(ui, source) if other.dev() != -1: