Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 770:b3820ce0e88a
Fix bug in exception handling for hardlink clone
author | mpm@selenic.com |
---|---|
date | Sat, 23 Jul 2005 10:14:42 -0500 |
parents | b444a7e053f1 |
children | 0de223012086 040655ea0cc4 |
comparison
equal
deleted
inserted
replaced
769:0c033ef053ab | 770:b3820ce0e88a |
---|---|
434 ui.note("cloning by hardlink\n") | 434 ui.note("cloning by hardlink\n") |
435 util.copytree(os.path.join(source, ".hg"), os.path.join(dest, ".hg"), | 435 util.copytree(os.path.join(source, ".hg"), os.path.join(dest, ".hg"), |
436 copyfile) | 436 copyfile) |
437 try: | 437 try: |
438 os.unlink(os.path.join(dest, ".hg", "dirstate")) | 438 os.unlink(os.path.join(dest, ".hg", "dirstate")) |
439 except IOError: | 439 except OSError: |
440 pass | 440 pass |
441 | 441 |
442 repo = hg.repository(ui, dest) | 442 repo = hg.repository(ui, dest) |
443 | 443 |
444 else: | 444 else: |