Fix clone when target directory is relative.
authorBryan O'Sullivan <bos@serpentine.com>
Sat, 13 Aug 2005 14:41:51 -0800
changeset 891 a9b843b114f9
parent 889 0a06d9d373c3
child 892 f481c9b6786e
Fix clone when target directory is relative.
mercurial/commands.py
--- 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