# HG changeset patch # User Brendan Cully # Date 1184140424 25200 # Node ID 1f3742217a7689928becc04066c303a5329585bc # Parent 76d4d031cc5074c44324a0a3ba10f6d8d1637095 replace .hgtags instead of appending to it when doing a raw commit diff --git a/mercurial/localrepo.py b/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'])