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 4929 22fcd6444ad9
parent 4928 2a7d30c97f89
child 4930 fc502517d68d
replace .hgtags instead of appending to it when doing a raw commit
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Jul 11 00:34:35 2007 -0700
+++ b/mercurial/localrepo.py	Wed Jul 11 00:53:44 2007 -0700
@@ -133,7 +133,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'])