mercurial/localrepo.py
changeset 4866 1f3742217a76
parent 4865 76d4d031cc50
child 4868 192cd95c2ba8
--- a/mercurial/localrepo.py	Wed Jul 11 00:34:35 2007 -0700
+++ b/mercurial/localrepo.py	Wed Jul 11 00:53:44 2007 -0700
@@ -134,7 +134,7 @@
                 ntags = self.filectx('.hgtags', parent).data()
             except revlog.LookupError:
                 ntags = ''
-            self.wfile('.hgtags', 'ab').write(ntags + line)
+            self.wfile('.hgtags', 'wb').write(ntags + line)
         if use_dirstate and self.dirstate.state('.hgtags') == '?':
             self.add(['.hgtags'])