diff mercurial/commands.py @ 891:a9b843b114f9

Fix clone when target directory is relative.
author Bryan O'Sullivan <bos@serpentine.com>
date Sat, 13 Aug 2005 14:41:51 -0800
parents 509de8ab6f31
children 62ec665759f2
line wrap: on
line diff
--- 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