Mercurial > hg-stable
changeset 5185:156f4c8a12aa
clone: do not delete the target if only the update fails
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 17 Aug 2007 00:42:22 +0200 |
parents | ee6a6592c997 |
children | 0d5d03844927 942c0827dc5b 316ce5e85b3e |
files | mercurial/hg.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Thu Aug 16 08:19:15 2007 +0200 +++ b/mercurial/hg.py Fri Aug 17 00:42:22 2007 +0200 @@ -212,6 +212,9 @@ 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 @@ except: checkout = dest_repo.changelog.tip() _update(dest_repo, checkout) - if dir_cleanup: - dir_cleanup.close() return src_repo, dest_repo