changeset 14246:f1f4abdd5074

debugbuilddag: simplify tags serialization a bit
author Patrick Mezard <pmezard@gmail.com>
date Sat, 07 May 2011 17:25:02 +0200
parents 13d44e4235f8
children c9720ada999c
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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"""