# HG changeset patch # User TK Soh # Date 1132083310 -3600 # Node ID 4dea10839201e8b3f5d5a72a98cc368abfe1cb3b # Parent 487e256ad545f16091ff5e6f0476045deb5e44f6 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 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -746,6 +746,7 @@ def clone(ui, source, dest=None, **opts) 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)