comparison mercurial/commands.py @ 518:b0187336843c

Fix failed clone in current directory -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fix failed clone in current directory Spotted by Edouard Gomez. manifest hash: 83fd3bb8056c531f2d696f00c5bd6a61274783eb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwu0jywK+sNU5EO8RAqPiAJ9tCL5PhHoGMTbaQzpt5dl+EkCH9QCgh4WL EOFeD2th0Ucs7Npu3t+VUB0= =p/Ig -----END PGP SIGNATURE-----
author mpm@selenic.com
date Wed, 29 Jun 2005 10:49:07 -0800
parents 9b884be92af2
children 2f1de824798a
comparison
equal deleted inserted replaced
517:9b884be92af2 518:b0187336843c
267 267
268 def clone(ui, source, dest = None, **opts): 268 def clone(ui, source, dest = None, **opts):
269 """make a copy of an existing repository""" 269 """make a copy of an existing repository"""
270 source = ui.expandpath(source) 270 source = ui.expandpath(source)
271 271
272 success = False 272 success = created = False
273 273
274 if dest is None: 274 if dest is None:
275 dest = os.getcwd() 275 dest = os.getcwd()
276 elif not os.path.exists(dest): 276 elif not os.path.exists(dest):
277 os.mkdir(dest) 277 os.mkdir(dest)