changeset 1548:4dea10839201

close .hg/hgrc after writing the default values on clone this fix a bug where Dircleanup did not work because the file was still open
author TK Soh <teekaysoh@yahoo.com>
date Tue, 15 Nov 2005 20:35:10 +0100
parents 487e256ad545
children 98398a6ddd75 18f3224da392 ccb9b62de892
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Nov 14 21:47:07 2005 +0100
+++ b/mercurial/commands.py	Tue Nov 15 20:35:10 2005 +0100
@@ -746,6 +746,7 @@
     f = repo.opener("hgrc", "w", text=True)
     f.write("[paths]\n")
     f.write("default = %s\n" % abspath)
+    f.close()
 
     if not opts['noupdate']:
         update(ui, repo)