mercurial/localrepo.py
changeset 4866 1f3742217a76
parent 4865 76d4d031cc50
child 4868 192cd95c2ba8
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)