changeset 14246 | f1f4abdd5074 |
parent 14242 | 5ee1309f7edb |
child 14252 | 19067884c5f5 |
--- a/mercurial/commands.py Mon May 02 12:10:50 2011 -0500 +++ b/mercurial/commands.py Sat May 07 17:25:02 2011 +0200 @@ -1097,11 +1097,7 @@ tr.release() if tags: - tagsf = repo.opener("localtags", "w") - try: - tagsf.write("".join(tags)) - finally: - tagsf.close() + repo.opener.write("localtags", "".join(tags)) def debugcommands(ui, cmd='', *args): """list all available commands and options"""