# HG changeset patch # User TK Soh # Date 2005-09-08 19:10:59 # Node ID 89f899caecb5887da23401b607e8d3409ad172e6 # Parent 8baa29e36b14afe9b3d0ef8fb630c93f8cdf107f clone: directory names take precedence over symbolic names If source matches both a directory name and a symbolic name to repo, the directory will be taken. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -614,7 +614,8 @@ def clone(ui, source, dest=None, **opts) ui.setconfig("ui", "remotecmd", opts['remotecmd']) d = Dircleanup(dest) - source = ui.expandpath(source) + if not os.path.exists(source): + source = ui.expandpath(source) abspath = source other = hg.repository(ui, source)