mercurial/commands.py
changeset 1547 4dea10839201
parent 1545 d69070c2547a
child 1550 ccb9b62de892
--- 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)