Mercurial > hg
comparison mercurial/commands.py @ 1547: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 | d69070c2547a |
children | ccb9b62de892 |
comparison
equal
deleted
inserted
replaced
1546:487e256ad545 | 1547:4dea10839201 |
---|---|
744 repo.pull(other, heads = revs) | 744 repo.pull(other, heads = revs) |
745 | 745 |
746 f = repo.opener("hgrc", "w", text=True) | 746 f = repo.opener("hgrc", "w", text=True) |
747 f.write("[paths]\n") | 747 f.write("[paths]\n") |
748 f.write("default = %s\n" % abspath) | 748 f.write("default = %s\n" % abspath) |
749 f.close() | |
749 | 750 |
750 if not opts['noupdate']: | 751 if not opts['noupdate']: |
751 update(ui, repo) | 752 update(ui, repo) |
752 | 753 |
753 d.close() | 754 d.close() |