# HG changeset patch # User Bryan O'Sullivan # Date 1123972911 28800 # Node ID a9b843b114f96b07cf0aabb1cec38d513591a07f # Parent 0a06d9d373c36be41166eaab1211f89da6779bf8 Fix clone when target directory is relative. diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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