author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Fri, 17 Aug 2007 00:42:22 +0200 | |
changeset 5179 | 156f4c8a12aa |
parent 5177 | ee6a6592c997 |
child 5180 | 0d5d03844927 |
child 5193 | 942c0827dc5b |
child 5214 | 316ce5e85b3e |
mercurial/hg.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -212,6 +212,9 @@ def clone(ui, source, dest=None, pull=Fa if src_lock: src_lock.release() + if dir_cleanup: + dir_cleanup.close() + if dest_repo.local(): fp = dest_repo.opener("hgrc", "w", text=True) fp.write("[paths]\n") @@ -227,8 +230,6 @@ def clone(ui, source, dest=None, pull=Fa except: checkout = dest_repo.changelog.tip() _update(dest_repo, checkout) - if dir_cleanup: - dir_cleanup.close() return src_repo, dest_repo