Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 4866:1f3742217a76
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 | 76d4d031cc50 |
children | 192cd95c2ba8 |
comparison
equal
deleted
inserted
replaced
4865:76d4d031cc50 | 4866:1f3742217a76 |
---|---|
132 else: | 132 else: |
133 try: | 133 try: |
134 ntags = self.filectx('.hgtags', parent).data() | 134 ntags = self.filectx('.hgtags', parent).data() |
135 except revlog.LookupError: | 135 except revlog.LookupError: |
136 ntags = '' | 136 ntags = '' |
137 self.wfile('.hgtags', 'ab').write(ntags + line) | 137 self.wfile('.hgtags', 'wb').write(ntags + line) |
138 if use_dirstate and self.dirstate.state('.hgtags') == '?': | 138 if use_dirstate and self.dirstate.state('.hgtags') == '?': |
139 self.add(['.hgtags']) | 139 self.add(['.hgtags']) |
140 | 140 |
141 tagnode = self.commit(['.hgtags'], message, user, date, p1=parent, | 141 tagnode = self.commit(['.hgtags'], message, user, date, p1=parent, |
142 extra=extra) | 142 extra=extra) |