# HG changeset patch # User Patrick Mezard # Date 1304781902 -7200 # Node ID f1f4abdd50748336a8e9b556c43efda03aa273aa # Parent 13d44e4235f87cba6b7df2e545d2fca099505c39 debugbuilddag: simplify tags serialization a bit diff -r 13d44e4235f8 -r f1f4abdd5074 mercurial/commands.py --- 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"""