changeset 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 0a06d9d373c3
children f481c9b6786e
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Aug 12 16:10:09 2005 -0800
+++ b/mercurial/commands.py	Sat Aug 13 14:41:51 2005 -0800
@@ -463,6 +463,8 @@
         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