# HG changeset patch # User Brendan Cully # Date 1184140424 25200 # Node ID 22fcd6444ad9c94b380f9b21eff255ced53c3a01 # Parent 2a7d30c97f898f469f790171d407229ac94ad5e4 replace .hgtags instead of appending to it when doing a raw commit diff -r 2a7d30c97f89 -r 22fcd6444ad9 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'])