changeset 4910:22fcd6444ad9

replace .hgtags instead of appending to it when doing a raw commit
author Brendan Cully <brendan@kublai.com>
date Wed, 11 Jul 2007 00:53:44 -0700
parents 2a7d30c97f89
children fc502517d68d
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -133,7 +133,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'])