diff mercurial/hg.py @ 5187:c1dbc9ae8f2b

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Aug 2007 00:35:16 -0500
parents 92236732d5a1 0d5d03844927
children 60acf1432ee0
line wrap: on
line diff
--- a/mercurial/hg.py	Wed Aug 15 16:55:15 2007 -0500
+++ b/mercurial/hg.py	Fri Aug 17 00:35:16 2007 -0500
@@ -214,6 +214,9 @@
             else:
                 raise util.Abort(_("clone from remote to remote not supported"))
 
+        if dir_cleanup:
+            dir_cleanup.close()
+
         if dest_repo.local():
             fp = dest_repo.opener("hgrc", "w", text=True)
             fp.write("[paths]\n")
@@ -226,8 +229,6 @@
                 except:
                     checkout = dest_repo.changelog.tip()
                 _update(dest_repo, checkout)
-        if dir_cleanup:
-            dir_cleanup.close()
 
         return src_repo, dest_repo
     finally: