changeset 1444 | f84ed9c6131d |
parent 1443 | 3a0b69ea5708 |
child 1447 | 508a3f559553 |
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -715,7 +715,10 @@ def clone(ui, source, dest=None, **opts) for f in files.split(): src = os.path.join(source, ".hg", f) dst = os.path.join(dest, ".hg", f) - util.copyfiles(src, dst) + try: + util.copyfiles(src, dst) + except OSError, inst: + if inst.errno != errno.ENOENT: raise repo = hg.repository(ui, dest)