diff -r 0e9234a1a3f6 -r 2e9698a5c92c mercurial/commands.py --- a/mercurial/commands.py Thu Jun 30 08:44:22 2005 -0800 +++ b/mercurial/commands.py Thu Jun 30 08:47:31 2005 -0800 @@ -273,9 +273,10 @@ if dest is None: dest = os.path.basename(os.path.normpath(source)) - if dest == source: - ui.warn('abort: source and destination are the same\n') - sys.exit(1) + + if os.path.exists(dest): + ui.warn("abort: destination '%s' already exists\n" % dest) + return 1 os.mkdir(dest)