Show More
@@ -273,9 +273,10 b' def clone(ui, source, dest = None, **opt' | |||||
273 |
|
273 | |||
274 | if dest is None: |
|
274 | if dest is None: | |
275 | dest = os.path.basename(os.path.normpath(source)) |
|
275 | dest = os.path.basename(os.path.normpath(source)) | |
276 | if dest == source: |
|
276 | ||
277 | ui.warn('abort: source and destination are the same\n') |
|
277 | if os.path.exists(dest): | |
278 | sys.exit(1) |
|
278 | ui.warn("abort: destination '%s' already exists\n" % dest) | |
|
279 | return 1 | |||
279 |
|
280 | |||
280 | os.mkdir(dest) |
|
281 | os.mkdir(dest) | |
281 |
|
282 |
General Comments 0
You need to be logged in to leave comments.
Login now