[PATCH] tags: delete unnecessary close() of atomictempfile

Yuya Nishihara yuya at tcha.org
Sat Apr 24 04:09:54 CDT 2010


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1272100086 -32400
# Node ID 682d36e76c6ad659cd9a47ea3f5209787b531c9b
# Parent  db4d7077f48d1a9d2f2e2d477a319f09f69cb5f9
tags: delete unnecessary close() of atomictempfile

cachefile.rename() implies cachefile.close().

diff --git a/mercurial/tags.py b/mercurial/tags.py
--- a/mercurial/tags.py
+++ b/mercurial/tags.py
@@ -337,4 +337,3 @@ def _writetagcache(ui, repo, heads, tagf
         cachefile.write("%s %s\n" % (hex(node), name))
 
     cachefile.rename()
-    cachefile.close()


More information about the Mercurial-devel mailing list