replace .hgtags instead of appending to it when doing a raw commit
authorBrendan Cully <brendan@kublai.com>
Wed, 11 Jul 2007 00:53:44 -0700
changeset 4856 1f3742217a76
parent 4855 76d4d031cc50
child 4857 8be7ba425621
replace .hgtags instead of appending to it when doing a raw commit
mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -134,7 +134,7 @@ class localrepository(repo.repository):
                 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'])