mercurial/commands.py
changeset 895 77b52b864249
parent 890 391de0bcc722
parent 894 62ec665759f2
child 896 01215ad04283
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -463,6 +463,8 @@ def clone(ui, source, dest=None, **opts)
         ui.warn("abort: destination '%s' already exists\n" % dest)
         return 1
 
+    dest = os.path.realpath(dest)
+
     class Dircleanup:
         def __init__(self, dir_):
             self.rmtree = shutil.rmtree